From 7eab49a6d25bf501ef47d77c2be47658a0c21804 Mon Sep 17 00:00:00 2001 From: ace Date: Fri, 17 Feb 2023 18:13:34 +0300 Subject: [PATCH] make facts override the role vars --- tasks/main.yaml | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/tasks/main.yaml b/tasks/main.yaml index 9d9be07..7f29c6c 100644 --- a/tasks/main.yaml +++ b/tasks/main.yaml @@ -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