diff options
author | Brenton Leanhardt <bleanhar@redhat.com> | 2016-01-25 15:31:53 -0500 |
---|---|---|
committer | Brenton Leanhardt <bleanhar@redhat.com> | 2016-01-25 15:31:53 -0500 |
commit | 4a2e65e5500eced93722ae6b39c7994a270563d2 (patch) | |
tree | 18ca3afb811b695b381afbe303b0c23221fd11a4 /roles/nuage_master/handlers | |
parent | 5b188705f2e54da54ae64ac40ad133619e3e0d02 (diff) | |
parent | 93eb9ba8fc5d6d14b8ffff1b946c528233cbb1d5 (diff) | |
download | openshift-4a2e65e5500eced93722ae6b39c7994a270563d2.tar.gz openshift-4a2e65e5500eced93722ae6b39c7994a270563d2.tar.bz2 openshift-4a2e65e5500eced93722ae6b39c7994a270563d2.tar.xz openshift-4a2e65e5500eced93722ae6b39c7994a270563d2.zip |
Merge pull request #1160 from vishpat/nuage
Nuage
Diffstat (limited to 'roles/nuage_master/handlers')
-rw-r--r-- | roles/nuage_master/handlers/main.yaml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/roles/nuage_master/handlers/main.yaml b/roles/nuage_master/handlers/main.yaml new file mode 100644 index 000000000..635d8a419 --- /dev/null +++ b/roles/nuage_master/handlers/main.yaml @@ -0,0 +1,18 @@ +--- +- name: restart nuagekubemon + sudo: true + service: name=nuagekubemon state=restarted + +- name: restart master + service: name={{ openshift.common.service_type }}-master state=restarted + when: (not openshift_master_ha | bool) and (not master_service_status_changed | default(false)) + +- name: restart master api + service: name={{ openshift.common.service_type }}-master-api state=restarted + when: (openshift_master_ha | bool) and (not master_api_service_status_changed | default(false)) and openshift.master.cluster_method == 'native' + +# TODO: need to fix up ignore_errors here +- name: restart master controllers + service: name={{ openshift.common.service_type }}-master-controllers state=restarted + when: (openshift_master_ha | bool) and (not master_controllers_service_status_changed | default(false)) and openshift.master.cluster_method == 'native' + ignore_errors: yes |