20 lines
398 B
YAML
20 lines
398 B
YAML
![]() |
---
|
||
|
- name: Install default packages
|
||
|
ansible.builtin.apt:
|
||
|
name: gnupg
|
||
|
state: present
|
||
|
|
||
|
- name: Ensure logrotate is installed
|
||
|
ansible.builtin.apt:
|
||
|
name: logrotate
|
||
|
state: present
|
||
|
|
||
|
- name: Deploy logrotate configuration
|
||
|
ansible.builtin.template:
|
||
|
src: logrotate.conf.j2
|
||
|
dest: /etc/logrotate.conf
|
||
|
owner: root
|
||
|
group: root
|
||
|
mode: '0644'
|
||
|
notify: Restart logrotate
|