diff --git a/tasks/main.yml b/tasks/main.yml index 918b19a..ecfe6f8 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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