|
84 | 84 | ansible.builtin.tempfile:
|
85 | 85 | register: _slurm_conf_tmpfile
|
86 | 86 | delegate_to: localhost
|
87 |
| - when: openhpc_enable.control | default(false) or not openhpc_slurm_configless |
| 87 | + when: openhpc_enable.control | default(false) or not openhpc_slurm_configless | bool |
88 | 88 | changed_when: false # so molecule doesn't fail
|
89 | 89 | become: no
|
90 | 90 |
|
|
95 | 95 | lstrip_blocks: true
|
96 | 96 | mode: 0644
|
97 | 97 | delegate_to: localhost
|
98 |
| - when: openhpc_enable.control | default(false) or not openhpc_slurm_configless |
| 98 | + when: openhpc_enable.control | default(false) or not openhpc_slurm_configless | bool |
99 | 99 | changed_when: false # so molecule doesn't fail
|
100 | 100 | become: no
|
101 | 101 |
|
|
110 | 110 | mode: 0644
|
111 | 111 | loop: "{{ openhpc_config | dict2items }}"
|
112 | 112 | delegate_to: localhost
|
113 |
| - when: openhpc_enable.control | default(false) or not openhpc_slurm_configless |
| 113 | + when: openhpc_enable.control | default(false) or not openhpc_slurm_configless | bool |
114 | 114 | changed_when: false # so molecule doesn't fail
|
115 | 115 | become: no
|
116 | 116 |
|
|
121 | 121 | owner: root
|
122 | 122 | group: root
|
123 | 123 | mode: 0644
|
124 |
| - when: openhpc_enable.control | default(false) or not openhpc_slurm_configless |
| 124 | + when: openhpc_enable.control | default(false) or not openhpc_slurm_configless | bool |
125 | 125 | notify:
|
126 | 126 | - Restart slurmctld service
|
127 | 127 | register: ohpc_slurm_conf
|
|
134 | 134 | mode: "0600"
|
135 | 135 | owner: slurm
|
136 | 136 | group: slurm
|
137 |
| - when: openhpc_enable.control | default(false) or not openhpc_slurm_configless |
| 137 | + when: openhpc_enable.control | default(false) or not openhpc_slurm_configless | bool |
138 | 138 | notify:
|
139 | 139 | - Restart slurmctld service
|
140 | 140 | register: ohpc_gres_conf
|
|
148 | 148 | mode: "0644" # perms/ownership based off src from ohpc package
|
149 | 149 | owner: root
|
150 | 150 | group: root
|
151 |
| - when: openhpc_enable.control | default(false) or not openhpc_slurm_configless |
| 151 | + when: openhpc_enable.control | default(false) or not openhpc_slurm_configless | bool |
152 | 152 |
|
153 | 153 | - name: Remove local tempfile for slurm.conf templating
|
154 | 154 | ansible.builtin.file:
|
|
180 | 180 | mode: 0644
|
181 | 181 | when:
|
182 | 182 | - openhpc_enable.batch | default(false)
|
183 |
| - - openhpc_slurm_configless |
| 183 | + - openhpc_slurm_configless | bool |
184 | 184 | notify:
|
185 | 185 | - Restart slurmd service
|
186 | 186 | # Reloading is sufficent, but using a single handler means no bounce. Realistically this won't regularly change on a running slurmd so restarting is ok.
|
|
0 commit comments