make facts override the role vars

This commit is contained in:
ace 2023-02-17 18:13:34 +03:00
parent b47025a610
commit 7eab49a6d2
Signed by: ace
GPG Key ID: 2C08973DD37A76FD

View File

@ -11,25 +11,10 @@
paths: paths:
- "vars" - "vars"
- name: Load host variables to override role vars - name: Set facts about needed vars
include_vars: set_fact:
dir: "{{ inventory_dir }}/host_vars" consul_version_build: "{{ consul_version_build }}"
ignore_unknown_extensions: True when: ansible_os_family == 'Debian'
extensions:
- ''
- "yaml"
- "yml"
tags: consul_override_role_vars
- name: Load group variables to override role vars
include_vars:
dir: "{{ inventory_dir }}/group_vars"
ignore_unknown_extensions: True
extensions:
- ''
- "yaml"
- "yml"
tags: consul_override_role_vars
- name: Consul cluster pre-check - name: Consul cluster pre-check
include_tasks: pre_check.yaml include_tasks: pre_check.yaml