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:
Mohammed Naser 2018-02-12 16:25:55 -05:00
parent 6e1c4cba27
commit 4843ab093b
2 changed files with 2 additions and 10 deletions

View File

@ -35,6 +35,8 @@
destination: "{{ magnum_etc_directory }}/api-paste.ini"
config_overrides: "{{ magnum_api_paste_ini_overrides }}"
config_type: "ini"
notify:
- Restart magnum services
- name: Download magnum images
get_url:

View File

@ -49,15 +49,5 @@
tags:
- 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
meta: flush_handlers