Skip to content

Commit e1fcba9

Browse files
authored
fix (multipath-tools): restart when etc/multipath.conf is changed (#694)
* restart multipath-tools when etc/multipath.conf is changed * combine restarts into one, fix white space * can combine services and fix typos
1 parent 0ac2ddf commit e1fcba9

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

ansible/playbooks/host-setup.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
gather_facts: "{{ gather_facts | default(true) }}"
2020
environment: "{{ deployment_environment_variables | default({}) }}"
2121
vars:
22-
helm_version: "" # Assume the default or set an explicit version.
22+
helm_version: "" # Assume the default or set an explicit version.
2323
tasks:
2424
- name: Download Helm command line tool
2525
ansible.builtin.uri:
@@ -51,9 +51,10 @@
5151
dest: /etc/multipath.conf
5252
owner: root
5353
group: root
54-
mode: '0644'
54+
mode: "0644"
5555
notify:
5656
- Restart multipathd systemd service
57+
- Restart multipath-tools systemd service
5758
- name: Install open-iscsi and multipath on nova compute nodes
5859
when:
5960
- enable_iscsi | default(false) | bool
@@ -83,3 +84,9 @@
8384
state: restarted
8485
daemon_reload: true
8586
enabled: true
87+
- name: Restart multipath-tools systemd service
88+
ansible.builtin.systemd:
89+
name: multipath-tools
90+
state: restarted
91+
daemon_reload: true
92+
enabled: true

0 commit comments

Comments
 (0)