Skip to content

Commit f684119

Browse files
authored
fix (multipath): consolidate restarts to single handler (#698)
1 parent 671ab0a commit f684119

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

ansible/playbooks/host-setup.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@
5353
group: root
5454
mode: "0644"
5555
notify:
56-
- Restart multipathd systemd service
57-
- Restart multipath-tools systemd service
56+
- Restart multipathd and multipath-tools service
5857
- name: Install open-iscsi and multipath on nova compute nodes
5958
when:
6059
- enable_iscsi | default(false) | bool
@@ -78,15 +77,12 @@
7877
state: "{{ (_multipath_packages is changed) | ternary('restarted', 'started') }}"
7978
enabled: true
8079
handlers:
81-
- name: Restart multipathd systemd service
80+
- name: Restart multipathd and multipath-tools service
8281
ansible.builtin.systemd:
83-
name: multipathd
84-
state: restarted
85-
daemon_reload: true
86-
enabled: true
87-
- name: Restart multipath-tools systemd service
88-
ansible.builtin.systemd:
89-
name: multipath-tools
82+
name: "{{ item }}"
9083
state: restarted
9184
daemon_reload: true
9285
enabled: true
86+
loop:
87+
- multipathd
88+
- multipath-tools

0 commit comments

Comments
 (0)