From 1b8cee42a09397958473dd2eef8ee99b3c02ea75 Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Mon, 30 Nov 2020 14:12:10 +0200 Subject: [PATCH] Trigger uwsgi restart When we were migrating service to uwsgi usage, we clean forgot to trigger uwsgi restart on service config change. We also use modern "listen" for service handlers that not using uwsgi. Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/756310 Change-Id: I360e6c7bc1910d3c013ff225a25f95a191252639 --- handlers/main.yml | 10 ++++------ tasks/adjutant_post_install.yml | 2 ++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/handlers/main.yml b/handlers/main.yml index 09dedab..d694bfb 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -13,12 +13,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -- name: Restart adjutant services - command: "/bin/true" - notify: - - Stop services - - Start services - - name: Stop services service: name: "{{ item.value.service_name }}" @@ -31,6 +25,8 @@ until: _stop is success retries: 5 delay: 2 + listen: + - Restart adjutant services - name: Start services service: @@ -46,3 +42,5 @@ until: _start is success retries: 5 delay: 2 + listen: + - Restart adjutant services diff --git a/tasks/adjutant_post_install.yml b/tasks/adjutant_post_install.yml index 0985d36..39e46ed 100644 --- a/tasks/adjutant_post_install.yml +++ b/tasks/adjutant_post_install.yml @@ -31,6 +31,7 @@ config_type: "yaml" notify: - Restart adjutant services + - Restart uwsgi services - name: Drop Adjutant WSGI Configs template: @@ -42,3 +43,4 @@ when: adjutant_use_uwsgi | bool notify: - Restart adjutant services + - Restart uwsgi services