Open
Description
Describe the bug
When extending inventory to add new node, first ansible run finish with failed.
Re;ease used is v2.2.0
TASK [ibm.spectrum_scale.core.cluster : configure | check if package upgraded] *******************************************************************
Thursday 17 March 2022 16:08:49 +0100 (0:00:00.084) 0:07:14.594 ********
skipping: [n001] => (item=n001)
skipping: [n001] => (item=n002)
fatal: [n001]: FAILED! =>
msg: |-
The conditional check '(hostvars[item].scale_install_updated is defined and (true in ansible_play_hosts | map('extract', hostvars, 'scale_install_updated') | map('bool') | list))' failed. The error was: error while evaluating conditional ((hostvars[item].scale_install_updated is defined and (true in ansible_play_hosts | map('extract', hostvars, 'scale_install_updated') | map('bool') | list))): 'ansible.vars.hostvars.HostVarsVars object' has no attribute 'scale_install_updated'
The error appears to be in 'xxxxxxx/ansible/ansible_collections/ibm/spectrum_scale/roles/core/cluster/tasks/finalize.yml': line 5, column 7, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- block: ## run_once: true
- name: configure | check if package upgraded
^ here
To Reproduce
Steps to reproduce the behavior:
- Add node to inventory
- Run ansible for the cluster
- first run crashwith error
- second one finish succesfully
Expected behavior
First run clear
Environment
Please run the following an paste your output here:
# Developement
$ ansible --version
ansible [core 2.11.8]
python version = 3.9.6 (default, Aug 25 2021, 16:22:38) [GCC 8.5.0 20210514 (Red Hat 8.5.0-3)]
jinja version = 3.0.3
libyaml = True
$ python --version
Python 3.9.6
# Deployment
[root@n001 ~]# rpm -qa | grep gpfs
gpfs.compression-5.1.2-2.x86_64
gpfs.gss.pmsensors-5.1.2-2.el7.x86_64
gpfs.gpl-5.1.2-2.noarch
gpfs.gskit-8.0.55-19.1.x86_64
gpfs.license.da-5.1.2-2.x86_64
gpfs.docs-5.1.2-2.noarch
gpfs.base-5.1.2-2.x86_64
gpfs.msg.en_US-5.1.2-2.noarch
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Metadata
Metadata
Assignees
Labels
No labels