File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 165
165
when : openhpc_slurm_service_started | bool
166
166
167
167
- name : Check slurmdbd state
168
- command : systemctl is-active slurmdbd
168
+ command : systemctl is-active slurmdbd # noqa: command-instead-of-module
169
169
changed_when : false
170
170
failed_when : false # rc = 0 when active
171
171
register : _openhpc_slurmdbd_state
Original file line number Diff line number Diff line change 47
47
- openhpc_slurm_accounting_storage_service != ''
48
48
49
49
- name : Backup Slurm database
50
- ansible.builtin.shell :
50
+ ansible.builtin.shell : # noqa: command-instead-of-shell
51
51
cmd : " {{ openhpc_slurm_accounting_storage_backup_cmd }}"
52
52
delegate_to : " {{ openhpc_slurm_accounting_storage_backup_host }}"
53
53
become : " {{ openhpc_slurm_accounting_storage_backup_become }}"
72
72
# See https://wiki.fysik.dtu.dk/Niflheim_system/Slurm_installation/#upgrade-slurmdbd
73
73
# and
74
74
# https://github.com/SchedMD/slurm/blob/0ce058c5adcf63001ec2ad211c65e67b0e7682a8/src/plugins/accounting_storage/mysql/as_mysql_usage.c#L1042
75
+ become : true
75
76
become_user : slurm
76
77
when : _openhpc_slurmdb_upgrade
You can’t perform that action at this time.
0 commit comments