replace default config file
This commit is contained in:
parent
3cd5070427
commit
2da3c0c930
@ -114,6 +114,15 @@
|
|||||||
when:
|
when:
|
||||||
- consul_encrypt_enable | bool
|
- 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
|
- name: apply config template
|
||||||
block:
|
block:
|
||||||
- name: server template
|
- name: server template
|
||||||
|
Loading…
Reference in New Issue
Block a user