add a handler to restart NM if needed in osbs cluster nodes

Signed-off-by: Adam Miller <admiller@redhat.com>
This commit is contained in:
Adam Miller 2016-10-31 15:35:38 +00:00
parent 08df692f1d
commit 2ae2aadfad

View file

@ -60,6 +60,12 @@
- "/srv/private/ansible/vars.yml"
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
handlers:
- name: restart NetworkManager
service:
name: NetworkManager
state: restarted
tasks:
- name: Deploy controller public ssh keys to osbs cluster hosts
authorized_key:
@ -80,6 +86,8 @@
lineinfile:
dest: "/etc/sysconfig/network-scripts/ifcfg-eth0"
line: "NM_CONTROLLED=yes"
notify:
- restart NetworkManager
# This is required for OpenShift built-in SkyDNS inside the overlay network
# of the cluster