From 6daa87575427ff35f965c91d0d777cfa21a44b06 Mon Sep 17 00:00:00 2001 From: Vitaliy Kukharik Date: Sat, 23 Apr 2022 22:20:03 +0300 Subject: [PATCH] Gathering Facts from all servers, tags: always Fixed: TASK [Include OS-specific variables] ****************************************************************************************************************** fatal: [192.168.169.151]: FAILED! => {"msg": "The conditional check 'not ansible_os_family == 'Rocky' and not ansible_os_family == 'AlmaLinux'' failed. The error was: error while evaluating conditional (not ansible_os_family == 'Rocky' and not ansible_os_family == 'AlmaLinux'): 'ansible_os_family' is undefined\n\nThe error appears to be in '/opt/services/ansible/postgresql_cluster/etcd_cluster.yml': line 14, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n pre_tasks:\n - name: Include OS-specific variables\n ^ here\n"} fatal: [192.168.169.152]: FAILED! => {"msg": "The conditional check 'not ansible_os_family == 'Rocky' and not ansible_os_family == 'AlmaLinux'' failed. The error was: error while evaluating conditional (not ansible_os_family == 'Rocky' and not ansible_os_family == 'AlmaLinux'): 'ansible_os_family' is undefined\n\nThe error appears to be in '/opt/services/ansible/postgresql_cluster/etcd_cluster.yml': line 14, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n pre_tasks:\n - name: Include OS-specific variables\n ^ here\n"} fatal: [192.168.169.153]: FAILED! => {"msg": "The conditional check 'not ansible_os_family == 'Rocky' and not ansible_os_family == 'AlmaLinux'' failed. The error was: error while evaluating conditional (not ansible_os_family == 'Rocky' and not ansible_os_family == 'AlmaLinux'): 'ansible_os_family' is undefined\n\nThe error appears to be in '/opt/services/ansible/postgresql_cluster/etcd_cluster.yml': line 14, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n pre_tasks:\n - name: Include OS-specific variables\n ^ here\n"} #167 --- deploy_pgcluster.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/deploy_pgcluster.yml b/deploy_pgcluster.yml index d2afe6764..59c8f3df3 100644 --- a/deploy_pgcluster.yml +++ b/deploy_pgcluster.yml @@ -14,6 +14,11 @@ msg: "Ansible version must be {{ minimal_ansible_version }} or higher" when: ansible_version.full is version(minimal_ansible_version, '<') +- name: Gathering facts from all servers + hosts: all + gather_facts: true + tags: always + - import_playbook: etcd_cluster.yml when: not dcs_exists|bool and dcs_type == "etcd" tags: etcd