Fix collection of hostlist
This commit is contained in:
parent
671682c520
commit
648e1c2710
|
@ -38,9 +38,12 @@
|
||||||
#- slurm-torque
|
#- slurm-torque
|
||||||
when: ansible_os_family == "RedHat"
|
when: ansible_os_family == "RedHat"
|
||||||
|
|
||||||
|
# FIXME: this task will fail if slurmservers[0] has not already completed the slurm.conf task that follows it
|
||||||
- name: Acquire hostlist
|
- name: Acquire hostlist
|
||||||
command: scontrol show hostlist {{ groups[item.inventory_group] | join(",") }}
|
command: scontrol show hostlist {{ groups[item.inventory_group] | join(",") }}
|
||||||
with_items: slurm_nodes
|
with_items: slurm_nodes
|
||||||
|
delegate_to: "{{ groups['slurmservers'][0] }}"
|
||||||
|
run_once: true
|
||||||
register: slurm_hostlists
|
register: slurm_hostlists
|
||||||
|
|
||||||
- name: Install slurm.conf
|
- name: Install slurm.conf
|
||||||
|
|
Loading…
Reference in New Issue