From 20cbf3b305c69957e7b820817b7b0d3f3ec6b119 Mon Sep 17 00:00:00 2001 From: Chris Breu Date: Fri, 20 Dec 2024 08:54:57 -0600 Subject: [PATCH] move tgt restart to tgt reload on etc/tgt/conf.d/cinder.conf change --- ansible/playbooks/deploy-cinder-volumes-reference.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ansible/playbooks/deploy-cinder-volumes-reference.yaml b/ansible/playbooks/deploy-cinder-volumes-reference.yaml index f684aeca..30615907 100644 --- a/ansible/playbooks/deploy-cinder-volumes-reference.yaml +++ b/ansible/playbooks/deploy-cinder-volumes-reference.yaml @@ -20,6 +20,13 @@ - cinder-volume - cinder-volume-usage-audit - iscsid.service + - name: Reload cinder-volume-tgt systemd service + ansible.builtin.systemd: + name: "{{ item }}" + state: reloaded + daemon_reload: true + enabled: true + loop: - tgt.service tasks: - name: K8S Facts block @@ -219,6 +226,9 @@ owner: root group: root mode: "0644" + notify: + - Reload cinder-volume-tgt systemd service + - name: Remove cinder conf staging file ansible.builtin.file: