ansible_public/playbooks/fast_fixes/change_log_saving_yearly.yaml

9 lines
243 B
YAML
Raw Permalink Normal View History

2022-06-14 18:53:16 +02:00
- hosts: "{{ variable_host | default(lab15_standard) }}"
gather_facts: no
become: yes
tasks:
- name: Change wtmp log rotate time to one year
replace:
path: /etc/logrotate.d/wtmp
regexp: 'monthly'
replace: 'yearly'