0b91e77383
Change-Id: I04df2069594399e5d49107d41f392314a2cd0fdc
16 lines
337 B
YAML
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
|