Skip to content

Commit

Permalink
Gathering Facts from all servers, tags: always
Browse files Browse the repository at this point in the history
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
  • Loading branch information
vitabaks committed Apr 23, 2022
1 parent dea40ae commit 6daa875
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions deploy_pgcluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6daa875

Please sign in to comment.