Use handlers based on filtered_nova_services
Change-Id: I3f9cde33af0a5f2aaeb0aedc964cb03a40ccbb9f
This commit is contained in:
parent
6a219128b7
commit
97cf209d69
@ -32,9 +32,7 @@
|
|||||||
state: "restarted"
|
state: "restarted"
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
register: nova_conductor_restart
|
register: nova_conductor_restart
|
||||||
when:
|
when: '"nova-conductor" in filtered_nova_services'
|
||||||
- "{{ nova_services['nova-conductor']['group'] in group_names }}"
|
|
||||||
- "{{ nova_services['nova-conductor']['condition'] | default(true) }}"
|
|
||||||
|
|
||||||
- name: Restart nova API
|
- name: Restart nova API
|
||||||
systemd:
|
systemd:
|
||||||
@ -42,9 +40,7 @@
|
|||||||
state: "restarted"
|
state: "restarted"
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
register: nova_api_restart
|
register: nova_api_restart
|
||||||
when:
|
when: '"nova-api-os-compute" in filtered_nova_services'
|
||||||
- "{{ nova_services['nova-api-os-compute']['group'] in group_names }}"
|
|
||||||
- "{{ nova_services['nova-api-os-compute']['condition'] | default(true) }}"
|
|
||||||
|
|
||||||
# Used for services where restart ordering does not matter
|
# Used for services where restart ordering does not matter
|
||||||
- name: Restart nova misc services
|
- name: Restart nova misc services
|
||||||
@ -60,9 +56,7 @@
|
|||||||
- nova-scheduler
|
- nova-scheduler
|
||||||
- nova-spicehtml5proxy
|
- nova-spicehtml5proxy
|
||||||
- nova-placement-api
|
- nova-placement-api
|
||||||
when:
|
when: 'item in filtered_nova_services'
|
||||||
- "{{ nova_services[item]['group'] in group_names }}"
|
|
||||||
- "{{ nova_services[item]['condition'] | default(true) }}"
|
|
||||||
|
|
||||||
- name: Restart nova compute
|
- name: Restart nova compute
|
||||||
systemd:
|
systemd:
|
||||||
@ -70,9 +64,7 @@
|
|||||||
state: "restarted"
|
state: "restarted"
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
register: nova_compute_restart
|
register: nova_compute_restart
|
||||||
when:
|
when: '"nova-compute" in filtered_nova_services'
|
||||||
- "{{ nova_services['nova-compute']['group'] in group_names }}"
|
|
||||||
- "{{ nova_services['nova-compute']['condition'] | default(true) }}"
|
|
||||||
|
|
||||||
- name: Reload Nginx
|
- name: Reload Nginx
|
||||||
systemd:
|
systemd:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user