net/client: re-add check for route, we need it for rdu
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
47419b1bc8
commit
95da94f986
1 changed files with 11 additions and 0 deletions
|
@ -12,6 +12,17 @@
|
||||||
notify:
|
notify:
|
||||||
- restart idmapd
|
- restart idmapd
|
||||||
|
|
||||||
|
# if we need to reload nm, we should do it now, not after roles.
|
||||||
|
- meta: flush_handlers
|
||||||
|
|
||||||
|
- name: check for netapp route
|
||||||
|
command: ip route show
|
||||||
|
register: netapproute
|
||||||
|
check_mode: no
|
||||||
|
changed_when: "1 != 1"
|
||||||
|
tags:
|
||||||
|
- nfs/client
|
||||||
|
|
||||||
- name: run netapp route if needed in rdu
|
- name: run netapp route if needed in rdu
|
||||||
command: /usr/bin/nmcli c up eth1
|
command: /usr/bin/nmcli c up eth1
|
||||||
when: netapproute.stdout.find("172.31.1.0") == -1 and datacenter == 'rdu'
|
when: netapproute.stdout.find("172.31.1.0") == -1 and datacenter == 'rdu'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue