diff options
author | Dmitry Ilvokhin <d@ilvokhin.com> | 2024-01-06 18:46:08 +0000 |
---|---|---|
committer | Dmitry Ilvokhin <d@ilvokhin.com> | 2024-01-06 18:46:08 +0000 |
commit | 6db38b7ab9ad2d629f6c317d413cc23f8a40bf44 (patch) | |
tree | e8df762ceaa631b793e23174ac0ca1fbb31e43c1 /roles/logrotate/tasks | |
parent | 170d68e7bc658c6bc0be2374f3043f8dcea2f499 (diff) | |
download | infra-6db38b7ab9ad2d629f6c317d413cc23f8a40bf44.tar.gz infra-6db38b7ab9ad2d629f6c317d413cc23f8a40bf44.tar.bz2 infra-6db38b7ab9ad2d629f6c317d413cc23f8a40bf44.zip |
Make logrotate a role
Diffstat (limited to 'roles/logrotate/tasks')
-rw-r--r-- | roles/logrotate/tasks/main.yml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/roles/logrotate/tasks/main.yml b/roles/logrotate/tasks/main.yml new file mode 100644 index 0000000..9171b40 --- /dev/null +++ b/roles/logrotate/tasks/main.yml @@ -0,0 +1,11 @@ +- name: Install logrotate + ansible.builtin.package: + name: + - logrotate + state: present + +- name: Enable logrotate timer + ansible.builtin.service: + name: logrotate.timer + enabled: yes + state: started |