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:
Monty Taylor 2018-08-17 12:56:27 -05:00
parent ee622108a5
commit 03f52d0bc8
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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: