Skip to content

Commit d35ef7f

Browse files
committed
address PR comments
1 parent d828652 commit d35ef7f

File tree

3 files changed

+15
-13
lines changed

3 files changed

+15
-13
lines changed

ansible/fatimage.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
tasks:
77
- name: Report hostname (= final image name)
88
command: hostname
9-
register: _hostname
109

1110
- name: Run pre.yml hook
1211
vars:

ansible/roles/cve-2023-41914/tasks/pre-upgrade.yml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
1-
- name: Shut down slurm
1+
- name: Stop slurmd
22
systemd:
3-
name: "{{ item }}"
3+
name: slurmd
44
state: stopped
5-
register: _stop
6-
failed_when: "'msg' in _stop and 'Could not find the requested service' not in _stop.msg"
7-
# ignore_errors: true
8-
loop:
9-
- slurmd
10-
- slurmctld
11-
- slurmdbd
5+
when: openhpc_enable.batch | default('false') | bool or 'login' in group_names
6+
7+
- name: Stop slurmctld
8+
systemd:
9+
name: slurmctld
10+
state: stopped
11+
when: openhpc_enable.control | default('false') | bool
12+
13+
- name: Stop slurmdbd
14+
systemd:
15+
name: slurmdbd
16+
state: stopped
17+
when: openhpc_enable.database | default('false') | bool
1218

1319
- name: Ensure backup directory exists
1420
file:

ansible/roles/cve-2023-41914/tasks/validate.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
# this is a subset (same format) as ansible_facts.packages
66
set_fact:
77
_cve_2023_41814_installed_pkgs: "{{ ansible_facts.packages | dict2items | selectattr('key', 'match', 'slurm-') | items2dict }}"
8-
9-
# - debug:
10-
# var: _cve_2023_41814_installed_pkgs
118

129
- name: Ensure only a single version of all slurm-* packages is installed
1310
assert:

0 commit comments

Comments
 (0)