replace default config file

This commit is contained in:
vincent 2022-06-20 22:13:26 +02:00
parent 3cd5070427
commit 2da3c0c930

View File

@ -114,6 +114,15 @@
when:
- consul_encrypt_enable | bool
- name: delete hcl config file
file:
path: "{{consul_config_path}}/consul.hcl"
state: absent
become : true
- name: Creating a file with content
copy:
dest: "{{consul_config_path}}/consul.hcl"
content: "{}"
- name: apply config template
block:
- name: server template