Skip to content

Commit 180d30a

Browse files
committed
fix ansible-lint whinging
1 parent 0d372fb commit 180d30a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tasks/runtime.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@
165165
when: openhpc_slurm_service_started | bool
166166

167167
- name: Check slurmdbd state
168-
command: systemctl is-active slurmdbd
168+
command: systemctl is-active slurmdbd # noqa: command-instead-of-module
169169
changed_when: false
170170
failed_when: false # rc = 0 when active
171171
register: _openhpc_slurmdbd_state

tasks/upgrade.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
- openhpc_slurm_accounting_storage_service != ''
4848

4949
- name: Backup Slurm database
50-
ansible.builtin.shell:
50+
ansible.builtin.shell: # noqa: command-instead-of-shell
5151
cmd: "{{ openhpc_slurm_accounting_storage_backup_cmd }}"
5252
delegate_to: "{{ openhpc_slurm_accounting_storage_backup_host }}"
5353
become: "{{ openhpc_slurm_accounting_storage_backup_become }}"
@@ -72,5 +72,6 @@
7272
# See https://wiki.fysik.dtu.dk/Niflheim_system/Slurm_installation/#upgrade-slurmdbd
7373
# and
7474
# https://github.com/SchedMD/slurm/blob/0ce058c5adcf63001ec2ad211c65e67b0e7682a8/src/plugins/accounting_storage/mysql/as_mysql_usage.c#L1042
75+
become: true
7576
become_user: slurm
7677
when: _openhpc_slurmdb_upgrade

0 commit comments

Comments
 (0)