Only require adding Jetstream hosts to inventory, not to the

galaxy_nodes list ingroup_vars/ slurmclients.yml. Also generate
/etc/hosts for Jetstream
This commit is contained in:
Nate Coraor 2016-09-22 11:02:36 -04:00
parent 77548ed51d
commit 671682c520
1 changed files with 5 additions and 0 deletions

View File

@ -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' ) }}"