commit 84aadded6ad1a834f3d6114a7b6e791a7ee6850b Author: Dmitriy Rabotyagov Date: Thu Oct 8 15:04:18 2020 +0300 Trigger uwsgi restart When we were migrating service to uwsgi usage, we clean forgot to trigger uwsgi restart on service config change. Change-Id: I267740e0a2c342e1ac3277a236d8a7f23830134b diff --git a/handlers/main.yml b/handlers/main.yml index 2d9cc61..7e19d07 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -62,13 +62,3 @@ listen: - "Restart aodh services" - "venv changed" - -# NOTE(noonedeadpunk): This task is created due to migration from apache to uwsgi -# which was introduced during train release. It can be dropped afterwards. -- name: Restart web server - service: - name: "{{ aodh_system_service_name }}" - enabled: yes - state: "restarted" - daemon_reload: "{{ (ansible_service_mgr == 'systemd') | ternary('yes', omit) }}" - failed_when: false diff --git a/tasks/aodh_post_install.yml b/tasks/aodh_post_install.yml index e712e09..909e45e 100644 --- a/tasks/aodh_post_install.yml +++ b/tasks/aodh_post_install.yml @@ -37,21 +37,4 @@ config_type: "json" notify: - Restart aodh services - -# NOTE(noonedeadpunk): This task is created due to migration from apache to uwsgi -# which was introduced during train release. It can be dropped afterwards. -- name: Drop Apache related configs - file: - path: "{{ item }}" - state: absent - with_items: "{{ aodh_apache_config }}" - notify: - - Restart web server - -- name: Stop Apache listening on Aodh port - lineinfile: - path: "{{ aodh_apache_ports }}" - state: absent - line: "Listen {{ aodh_service_port }}" - notify: - - Restart web server + - Restart uwsgi services