26 lines
480 B
YAML
26 lines
480 B
YAML
|
---
|
||
|
- 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
|