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]