Haproxy needs to be enabled on init
This commit is contained in:
@@ -10,5 +10,10 @@
|
||||
- name: Create haproxy config file
|
||||
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
|
||||
service: name=haproxy state=restarted
|
||||
|
||||
Reference in New Issue
Block a user