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:
parent
77548ed51d
commit
671682c520
|
@ -38,6 +38,11 @@
|
||||||
#- slurm-torque
|
#- slurm-torque
|
||||||
when: ansible_os_family == "RedHat"
|
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
|
- name: Install slurm.conf
|
||||||
template:
|
template:
|
||||||
src: "{{ slurm_conf_src | default( 'templates/slurm/slurm.conf.j2' ) }}"
|
src: "{{ slurm_conf_src | default( 'templates/slurm/slurm.conf.j2' ) }}"
|
||||||
|
|
Loading…
Reference in New Issue