From 95da94f9864acd02bbc4421940ac6b25b54996bb Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Tue, 16 Feb 2021 14:31:52 -0800 Subject: [PATCH] net/client: re-add check for route, we need it for rdu Signed-off-by: Kevin Fenzi --- roles/nfs/client/tasks/main.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/roles/nfs/client/tasks/main.yml b/roles/nfs/client/tasks/main.yml index f7c80ba73c..49a7190d00 100644 --- a/roles/nfs/client/tasks/main.yml +++ b/roles/nfs/client/tasks/main.yml @@ -12,6 +12,17 @@ notify: - 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 command: /usr/bin/nmcli c up eth1 when: netapproute.stdout.find("172.31.1.0") == -1 and datacenter == 'rdu'