Skip to content

Commit 86ab8d4

Browse files
committed
address linter errors
1 parent f9175e9 commit 86ab8d4

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

handlers/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,7 @@
6666
- openhpc_slurm_service_started | bool
6767
- openhpc_enable.batch | default(false) | bool
6868
# 2nd condition required as notification happens on controller, which isn't necessarily a compute note
69+
70+
- name: Reload facts
71+
ansible.builtin.setup:
72+
filter: ansible_local

tasks/facts.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# this includes any dynamically-generated config, not just what is set in
33
# slurm.conf
44
ansible.builtin.command: scontrol show config
5+
changed_when: false
56
register: _scontrol_config
67

78
- name: Create facts directory
@@ -20,8 +21,4 @@
2021
group: slurm
2122
mode: ug=rw,o=r # any user can run scontrol show config anyway
2223
register: _template_facts
23-
24-
- name: Reload facts if necessary
25-
ansible.builtin.setup:
26-
filter: ansible_local
27-
when: _template_facts.changed
24+
notify: Reload facts

0 commit comments

Comments
 (0)