File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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 }}"
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
You can’t perform that action at this time.
0 commit comments