Haproxy needs to be enabled on init

This commit is contained in:
2016-02-02 08:56:42 -05:00
parent 5f0e4b24e8
commit dd4fd53ce7

View File

@@ -10,5 +10,10 @@
- name: Create haproxy config file - name: Create haproxy config file
template: src=haproxy.cfg.j2 dest=/etc/haproxy/haproxy.cfg template: src=haproxy.cfg.j2 dest=/etc/haproxy/haproxy.cfg
- name: Enable init script
replace: dest='/etc/default/haproxy'
regexp='ENABLED=0'
replace='ENABLED=1'
- name: Restart haproxy - name: Restart haproxy
service: name=haproxy state=restarted service: name=haproxy state=restarted