browbeat/ansible/browbeat/cleanlogs.yml
Alex Krzos 0b91e77383 Disable fact gathering for adjustment and cleaning logs.
Change-Id: I04df2069594399e5d49107d41f392314a2cd0fdc
2015-12-22 16:01:23 -05:00

16 lines
337 B
YAML

---
#
# Playbook to clean log files on controller nodes
#
- hosts: controller
remote_user: heat-admin
gather_facts: false
tasks:
- name: Clean Logs
shell: for i in $(ls {{ item }}); do echo "" > $i; done
with_items:
- /var/log/keystone/*.log
- /var/log/nova/*.log
- /var/log/neutron/*.log