From 671682c52056b5ff77c8ae0c0b0ff4ca119d35d9 Mon Sep 17 00:00:00 2001 From: Nate Coraor Date: Thu, 22 Sep 2016 11:02:36 -0400 Subject: [PATCH] Only require adding Jetstream hosts to inventory, not to the galaxy_nodes list ingroup_vars/ slurmclients.yml. Also generate /etc/hosts for Jetstream --- tasks/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index 4c7b345..58925a6 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -38,6 +38,11 @@ #- slurm-torque when: ansible_os_family == "RedHat" +- name: Acquire hostlist + command: scontrol show hostlist {{ groups[item.inventory_group] | join(",") }} + with_items: slurm_nodes + register: slurm_hostlists + - name: Install slurm.conf template: src: "{{ slurm_conf_src | default( 'templates/slurm/slurm.conf.j2' ) }}"