From 648e1c27104398f0268927a8667e9f03cf5237c9 Mon Sep 17 00:00:00 2001 From: Nate Coraor Date: Tue, 21 Feb 2017 17:18:42 -0500 Subject: [PATCH] Fix collection of hostlist --- tasks/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index 58925a6..25bec87 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -38,9 +38,12 @@ #- slurm-torque 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 command: scontrol show hostlist {{ groups[item.inventory_group] | join(",") }} with_items: slurm_nodes + delegate_to: "{{ groups['slurmservers'][0] }}" + run_once: true register: slurm_hostlists - name: Install slurm.conf