File tree 2 files changed +4
-2
lines changed
2 files changed +4
-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 }}"
54
+ changed_when : true # limt no-changed-when
54
55
run_once : true
55
56
when :
56
57
- _openhpc_slurmdb_upgrade
72
73
# See https://wiki.fysik.dtu.dk/Niflheim_system/Slurm_installation/#upgrade-slurmdbd
73
74
# and
74
75
# https://github.com/SchedMD/slurm/blob/0ce058c5adcf63001ec2ad211c65e67b0e7682a8/src/plugins/accounting_storage/mysql/as_mysql_usage.c#L1042
76
+ become : true
75
77
become_user : slurm
76
78
when : _openhpc_slurmdb_upgrade
You can’t perform that action at this time.
0 commit comments