Skip to content

Commit 3c706d7

Browse files
committed
only run validation once
1 parent 10a8ace commit 3c706d7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tasks/validate.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
- openhpc_cluster_name is defined
77
- openhpc_cluster_name != ''
88
fail_msg: openhpc role variables not correctly defined, see detail above
9+
delegate_to: localhost
10+
run_once: true
911

1012
- name: Check no host appears in more than one nodegroup
1113
assert:
@@ -16,8 +18,12 @@
1618
vars:
1719
_openhpc_node_inventory_groups: "{{ openhpc_nodegroups | map(attribute='name') | map('regex_replace', '^', openhpc_cluster_name ~ '_') }}"
1820
_openhpc_check_hosts: "{{ groups | dict2items | list | selectattr('key', 'in', _openhpc_node_inventory_groups) | map(attribute='value') | flatten | community.general.counter }}"
21+
delegate_to: localhost
22+
run_once: true
1923

2024
- name: Fail if configuration is old
2125
assert:
2226
that: openhpc_slurm_partitions is not defined
2327
fail_msg: stackhpc.openhpc parameter openhpc_slurm_partitions has been replaced - see openhpc_nodegroups and openhpc_partitions
28+
delegate_to: localhost
29+
run_once: true

0 commit comments

Comments
 (0)