- 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'