add haproxy repo, custom config files & readme
This commit is contained in:
@@ -22,7 +22,19 @@
|
||||
notify:
|
||||
- haproxy restart
|
||||
|
||||
- name: haproxy | copy configuration file
|
||||
- name: haproxy | copy custom configuration file
|
||||
copy:
|
||||
src: "{{ haproxy_custom_configuration_file }}"
|
||||
dest: '/etc/haproxy/haproxy.cfg'
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0440'
|
||||
validate: 'haproxy -f %s -c {% if haproxy_accept_warnings %}-q{% endif %}'
|
||||
when: haproxy_custom_configuration_file is defined
|
||||
notify:
|
||||
- haproxy reload
|
||||
|
||||
- name: haproxy | copy default configuration file
|
||||
template:
|
||||
src: haproxy.cfg.j2
|
||||
dest: '/etc/haproxy/haproxy.cfg'
|
||||
@@ -30,5 +42,6 @@
|
||||
group: root
|
||||
mode: '0440'
|
||||
validate: 'haproxy -f %s -c {% if haproxy_accept_warnings %}-q{% endif %}'
|
||||
when: haproxy_custom_configuration_file is not defined
|
||||
notify:
|
||||
- haproxy reload
|
||||
|
||||
Reference in New Issue
Block a user