Move ansible log into directory
file: state=touch returns changed every time. Instead, put the log files into a /var/log/ansible directory. Change-Id: I086d803f0e532b9da41cb01d4e7d2ed66245dfc1
This commit is contained in:
parent
ee622108a5
commit
03f52d0bc8
@ -1,7 +1,7 @@
|
||||
[defaults]
|
||||
inventory=/opt/system-config/inventory/openstack.yaml,/opt/system-config/inventory/groups.yaml,/etc/ansible/hosts/emergency
|
||||
library=/usr/share/ansible
|
||||
log_path=/var/log/ansible.log
|
||||
log_path=/var/log/ansible/ansible.log
|
||||
callback_plugins=/etc/ansible/callback_plugins
|
||||
inventory_plugins=/etc/ansible/inventory_plugins
|
||||
roles_path=/opt/system-config/roles:/etc/ansible/roles
|
||||
|
@ -24,13 +24,13 @@
|
||||
group: admin
|
||||
mode: 0770
|
||||
|
||||
- name: Ensure ansible log file is writable
|
||||
- name: Ensure ansible log dir is writable
|
||||
file:
|
||||
path: /var/log/ansible.log
|
||||
state: touch
|
||||
path: /var/log/ansible
|
||||
state: directory
|
||||
owner: root
|
||||
group: admin
|
||||
mode: 0660
|
||||
mode: 0775
|
||||
|
||||
- name: Copy ansible.cfg in to place
|
||||
copy:
|
||||
|
Loading…
x
Reference in New Issue
Block a user