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
This commit is contained in:
Dmitriy Rabotyagov 2020-10-08 15:04:18 +03:00
parent 2bdb3e6744
commit 84aadded6a
2 changed files with 1 additions and 28 deletions

View File

@ -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

View File

@ -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