Adding backup flag for config files
This commit is contained in:
parent
635628222f
commit
c7b4e85d96
1 changed files with 2 additions and 0 deletions
|
@ -102,6 +102,7 @@
|
||||||
src: "{{ item }}"
|
src: "{{ item }}"
|
||||||
dest: /etc/haproxy/maps
|
dest: /etc/haproxy/maps
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
backup: true
|
||||||
with_fileglob:
|
with_fileglob:
|
||||||
- "maps/*"
|
- "maps/*"
|
||||||
notify: reload haproxy
|
notify: reload haproxy
|
||||||
|
@ -124,6 +125,7 @@
|
||||||
dest: /etc/haproxy/haproxy.cfg
|
dest: /etc/haproxy/haproxy.cfg
|
||||||
mode: 0644
|
mode: 0644
|
||||||
validate: haproxy -f %s -c -q
|
validate: haproxy -f %s -c -q
|
||||||
|
backup: true
|
||||||
notify: reload haproxy
|
notify: reload haproxy
|
||||||
|
|
||||||
- name: Ensure HAProxy is started and enabled on boot.
|
- name: Ensure HAProxy is started and enabled on boot.
|
||||||
|
|
Loading…
Reference in a new issue