ansible-role-logrotate/molecule/default/converge.yml

26 lines
480 B
YAML
Raw Normal View History

2021-08-20 18:59:27 +02:00
---
- name: Converge
hosts: all
roles:
- ansible-role-logrotate
vars:
logrotate_config:
- files:
- /var/log/test.log
options:
rotate: 5
missingok: true
weekly: false
postrotate:
echo test
- files:
- /var/log/test2.log
options:
rotate: 2
missingok: true
pre_tasks:
- name: update apt cache
ansible.builtin.apt:
update_cache: true