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 }}"
|
||||
dest: /etc/haproxy/maps
|
||||
mode: 0644
|
||||
backup: true
|
||||
with_fileglob:
|
||||
- "maps/*"
|
||||
notify: reload haproxy
|
||||
|
@ -124,6 +125,7 @@
|
|||
dest: /etc/haproxy/haproxy.cfg
|
||||
mode: 0644
|
||||
validate: haproxy -f %s -c -q
|
||||
backup: true
|
||||
notify: reload haproxy
|
||||
|
||||
- name: Ensure HAProxy is started and enabled on boot.
|
||||
|
|
Loading…
Reference in a new issue