mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-06 16:46:54 +02:00
Update to 2022-08-11 11:00
This commit is contained in:
@@ -60,3 +60,15 @@
|
||||
when: consul_conf_validation.rc != 0
|
||||
tags: consul
|
||||
|
||||
# Now we remove the backup config to prevent consul warning about invalid config files
|
||||
- name: List backup conf
|
||||
shell: ls -1 {{ consul_root_dir }}/etc/*.hcl.*
|
||||
failed_when: False
|
||||
changed_when: False
|
||||
register: consul_backup_configs
|
||||
tags: consul
|
||||
|
||||
- name: Remove backup configs
|
||||
file: path={{ item }} state=absent
|
||||
loop: "{{ consul_backup_configs.stdout_lines }}"
|
||||
tags: consul
|
||||
|
Reference in New Issue
Block a user