Fix collection of hostlist

This commit is contained in:
Nate Coraor 2017-02-21 17:18:42 -05:00
parent 671682c520
commit 648e1c2710
1 changed files with 3 additions and 0 deletions

View File

@ -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