Restart only when needed
The role currently always restarts Magnum at the end of every run which is not ideal. This patch removes the restart at every run and adds a notify for configuration changes. Change-Id: Ia47d9983598598b5550d623df78aae616d8948a4
This commit is contained in:
parent
6e1c4cba27
commit
4843ab093b
|
@ -35,6 +35,8 @@
|
||||||
destination: "{{ magnum_etc_directory }}/api-paste.ini"
|
destination: "{{ magnum_etc_directory }}/api-paste.ini"
|
||||||
config_overrides: "{{ magnum_api_paste_ini_overrides }}"
|
config_overrides: "{{ magnum_api_paste_ini_overrides }}"
|
||||||
config_type: "ini"
|
config_type: "ini"
|
||||||
|
notify:
|
||||||
|
- Restart magnum services
|
||||||
|
|
||||||
- name: Download magnum images
|
- name: Download magnum images
|
||||||
get_url:
|
get_url:
|
||||||
|
|
|
@ -49,15 +49,5 @@
|
||||||
tags:
|
tags:
|
||||||
- magnum-config
|
- magnum-config
|
||||||
|
|
||||||
- name: Restart Magnum Services
|
|
||||||
service:
|
|
||||||
name: "{{ item }}"
|
|
||||||
state: "restarted"
|
|
||||||
with_items:
|
|
||||||
- "{{ magnum_api_program_name }}"
|
|
||||||
- "{{ magnum_conductor_program_name }}"
|
|
||||||
tags:
|
|
||||||
- magnum-config
|
|
||||||
|
|
||||||
- name: Flush handlers
|
- name: Flush handlers
|
||||||
meta: flush_handlers
|
meta: flush_handlers
|
||||||
|
|
Loading…
Reference in New Issue