2021-10-04 07:52:51 +00:00
|
|
|
- name: Installing HAProxy conf for rsyslog
|
|
|
|
template:
|
|
|
|
src: /var/www/haproxy-wi/app/scripts/ansible/roles/haproxy/templates/haproxy_rsyslog.conf.j2
|
2022-01-16 13:50:53 +00:00
|
|
|
dest: /etc/rsyslog.d/49-haproxy.conf
|
2022-04-06 12:32:04 +00:00
|
|
|
force: yes
|
2021-10-04 07:52:51 +00:00
|
|
|
ignore_errors: yes
|
|
|
|
notify: restart rsyslog
|
|
|
|
|
2023-12-22 22:43:46 +00:00
|
|
|
- name: Installing HAProxy conf for logrotate on EL
|
2021-10-04 07:52:51 +00:00
|
|
|
template:
|
|
|
|
src: /var/www/haproxy-wi/app/scripts/ansible/roles/haproxy/templates/logrotate.conf.j2
|
|
|
|
dest: /etc/logrotate.d/haproxy.conf
|
|
|
|
force: no
|
2023-02-22 07:36:20 +00:00
|
|
|
when: (ansible_facts['os_family'] == "RedHat" or ansible_facts['os_family'] == 'CentOS')
|
2023-12-22 22:43:46 +00:00
|
|
|
ignore_errors: yes
|
|
|
|
|
|
|
|
- name: Installing HAProxy conf for logrotate on Debian
|
|
|
|
template:
|
|
|
|
src: /var/www/haproxy-wi/app/scripts/ansible/roles/haproxy/templates/logrotate-debian.conf.j2
|
|
|
|
dest: /etc/logrotate.d/haproxy-roxy-wi
|
|
|
|
force: no
|
|
|
|
when: (ansible_facts['os_family'] == "Debian" or ansible_facts['os_family'] == 'Ubuntu')
|
|
|
|
ignore_errors: yes
|