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

learning about conditionals in ansible

Former-commit-id: ff29cb95
parent 165c5534
No related branches found
No related tags found
No related merge requests found
......@@ -61,10 +61,13 @@
register: slurm_cluster_count
check_mode: no
- debug:
var: slurm_cluster_count
- name: "create cluster in slurm db"
shell: "{{slurm_dir}}/bin/sacctmgr -i create cluster {{ clustername }}"
become: true
when: '"1" is slurm_cluster_count.stdout'
when: slurm_cluster_count.stdout == '1'
- name: make sure munge is started
service: name=munge state=started enabled=yes
......
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