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:
parent
2bdb3e6744
commit
84aadded6a
|
@ -62,13 +62,3 @@
|
||||||
listen:
|
listen:
|
||||||
- "Restart aodh services"
|
- "Restart aodh services"
|
||||||
- "venv changed"
|
- "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
|
|
||||||
|
|
|
@ -37,21 +37,4 @@
|
||||||
config_type: "json"
|
config_type: "json"
|
||||||
notify:
|
notify:
|
||||||
- Restart aodh services
|
- Restart aodh services
|
||||||
|
- Restart uwsgi 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
|
|
||||||
|
|
Loading…
Reference in New Issue