Skip to content

Commit

Permalink
Node add fix
Browse files Browse the repository at this point in the history
Signed-off-by: Rajan Mishra <[email protected]>
  • Loading branch information
rajan-mis committed Jun 28, 2022
1 parent 32ab345 commit 4c0a260
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion roles/core_install/tasks/upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@
scale_repo_gpfsversion: "{{ package_gpfs_version }}"
when: scale_install_repository_url is defined

- set_fact:
scale_vars_update: "{{ ansible_play_hosts|
map('extract', hostvars, 'scale_install_needsupdate')|
list }}"
run_once: true

- block: ## run_once: true
- name: update | Check if any running node needs to be updated
Expand All @@ -67,6 +72,6 @@
######################################################################
assert:
that:
- true not in ansible_play_hosts | map('extract', hostvars, 'scale_install_needsupdate') | list
- "{{ 'True' not in scale_vars_update }}"
msg: "{{ msg.split('\n') }}"
run_once: true

0 comments on commit 4c0a260

Please sign in to comment.