Skip to content
Snippets Groups Projects
Commit 7699e8ae authored by Andreas Hamacher's avatar Andreas Hamacher
Browse files

playing with quotes to make ansible happy

parent ab5aac15
No related branches found
No related tags found
1 merge request!460Upcoming maintenance
...@@ -112,7 +112,7 @@ ...@@ -112,7 +112,7 @@
register: slurm_cluster_count register: slurm_cluster_count
check_mode: no check_mode: no
changed_when: false changed_when: false
when: slurmctrl == inventory_hostname when: 'slurmctrl == inventory_hostname'
- debug: - debug:
var: slurm_cluster_count var: slurm_cluster_count
...@@ -121,7 +121,7 @@ ...@@ -121,7 +121,7 @@
- name: "create cluster in slurm db" #needs munge to run - name: "create cluster in slurm db" #needs munge to run
shell: "{{ slurm_dir }}/bin/sacctmgr -i create cluster {{ clustername }}" shell: "{{ slurm_dir }}/bin/sacctmgr -i create cluster {{ clustername }}"
become: true become: true
when: slurm_cluster_count.stdout == '1' and slurmctrl == inventory_hostname when: 'slurmctrl == inventory_hostname and slurm_cluster_count.stdout == "1"'
- name: start slurmd - name: start slurmd
service: name=slurmd enabled={{ slurmd_enabled }} service: name=slurmd enabled={{ slurmd_enabled }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment