1 #####################################
2 ### someone's ansible provisioner ###
3 #####################################
4 # Part of: https://git.somenet.org/root/pub/somesible.git
5 # 2017-2024 by someone <someone@somenet.org>
8 - name: install logrotate
15 ignore_errors: "{{ignore_online_errors | bool}}"
18 - name: copy logrotate config
21 dest: "/etc/logrotate.conf"
26 - "{{lookup('env','PWD')}}/host_files/{{inventory_hostname}}/{{role_name}}/logrotate.conf"
27 - "{{lookup('env','PWD')}}/group_files/{{group_files_group}}/{{role_name}}/logrotate.conf"
28 - "{{lookup('env','PWD')}}/group_files/all/{{role_name}}/logrotate.conf"
29 - "default/logrotate.conf"
32 - name: copy syslog logrotate config
35 dest: "/etc/logrotate.d/rsyslog"
40 - "{{lookup('env','PWD')}}/host_files/{{inventory_hostname}}/{{role_name}}/d.rsyslog"
41 - "{{lookup('env','PWD')}}/group_files/{{group_files_group}}/{{role_name}}/d.rsyslog"
42 - "{{lookup('env','PWD')}}/group_files/all/{{role_name}}/d.rsyslog"
46 - name: enable and start logrotate.timer
47 include_role: name="base/systemd/enable-and-start"
49 service_name: logrotate.timer