Trigger uwsgi restart

When we were migrating service to uwsgi usage, we clean forgot to
trigger uwsgi restart on service config change.

Depends-On: https://review.opendev.org/758953
Change-Id: Iaf42be11b69bd2630c3f2e929ccff8b9ad9f0639
This commit is contained in:
Dmitriy Rabotyagov 2020-10-08 17:41:39 +03:00 committed by Dmitriy Rabotyagov (noonedeadpunk)
parent 09960d6ad6
commit 1fb838443e
2 changed files with 6 additions and 6 deletions

View File

@ -19,8 +19,6 @@
become_user: "{{ ironic_system_user_name }}"
changed_when: false
when: inventory_hostname in groups['ironic_conductor'][0]
notify:
- Restart ironic services
- name: Update database schema
command: "{{ ironic_bin }}/ironic-inspector-dbsync --config-file /etc/ironic-inspector/ironic-inspector.conf upgrade"
@ -29,5 +27,3 @@
when:
- ironic_services['ironic-inspector']['group'] in group_names
- inventory_hostname == groups[ironic_services['ironic-inspector']['group']][0]
notify:
- Restart ironic services

View File

@ -116,7 +116,9 @@
config_overrides: "{{ ironic_inspector_rootwrap_conf_overrides }}"
config_type: "ini"
condition: inventory_hostname in groups['ironic-inspector']
notify: Restart ironic services
notify:
- Restart ironic services
- Restart uwsgi services
- name: Implement policy.json
copy:
@ -133,7 +135,9 @@
group: "root"
with_fileglob:
- rootwrap.d/*
notify: Restart ironic services
notify:
- Restart ironic services
- Restart uwsgi services
- name: Include sudoers file
template: