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:
- "vars"
- name: Load host variables to override role vars
include_vars:
dir: "{{ inventory_dir }}/host_vars"
ignore_unknown_extensions: True
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: Set facts about needed vars
set_fact:
consul_version_build: "{{ consul_version_build }}"
when: ansible_os_family == 'Debian'
- name: Consul cluster pre-check
include_tasks: pre_check.yaml