From 2da3c0c9309bb209860052a86d22e2466a51ac4d Mon Sep 17 00:00:00 2001 From: vincent Date: Mon, 20 Jun 2022 22:13:26 +0200 Subject: [PATCH] replace default config file --- tasks/main.yml | 9 +++++++++ 1 file changed, 9 insertions(+) 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