From 8f15c2b100336dfe76bd515a1728749864b9ab57 Mon Sep 17 00:00:00 2001 From: ace Date: Fri, 10 Feb 2023 17:40:44 +0300 Subject: [PATCH] fix vars --- tasks/main.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tasks/main.yaml b/tasks/main.yaml index 31207b1..0ba5797 100644 --- a/tasks/main.yaml +++ b/tasks/main.yaml @@ -11,6 +11,22 @@ paths: - "vars" +- name: Load host variables to override role vars + include_vars: + dir: "{{ inventory_dir }}/host_vars" + ignore_unknown_extensions: True + extensions: + - '' + tags: consul_override_role_vars + +- name: Load group variables to override role vars + include_vars: + dir: "{{ inventory_dir }}/group_vars" + extensions: + - "yaml" + - "yml" + tags: consul_override_role_vars + - name: Consul cluster pre-check include_tasks: pre_check.yaml when: inventory_hostname in groups[consul_server_group]