From 1d3b6b10e4b840122a7b853a4848e898638f9969 Mon Sep 17 00:00:00 2001 From: Stephen Smoogen Date: Sat, 1 Jun 2019 18:35:36 +0000 Subject: [PATCH] add a route to get to the netapp over 10.5.127 --- roles/nfs/client/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/nfs/client/tasks/main.yml b/roles/nfs/client/tasks/main.yml index 437cde2067..b690dbbba6 100644 --- a/roles/nfs/client/tasks/main.yml +++ b/roles/nfs/client/tasks/main.yml @@ -14,7 +14,7 @@ - name: route config for netapp network copy: src=route-eth1.{{ datacenter }} dest=/etc/sysconfig/network-scripts/route-eth1 - when: (datacenter == 'phx2' or datacenter == 'staging') and 'koji' in mnt_dir + when: (datacenter == 'phx2' or datacenter == 'staging') and ( 'koji' in mnt_dir or 'fedora/app' in mnt_dir ) tags: - nfs/client @@ -28,7 +28,7 @@ - name: run netapp route if needed in phx2 command: /usr/bin/nmcli c up eth1 - when: netapproute.stdout.find("10.5.88.0") == -1 and datacenter == 'phx2' and not inventory_hostname.startswith(('buildvm-armv7','buildhw-aarch64','buildvm-s390x','koji01.stg', 'odcs-frontend01.stg')) and 'koji' in mnt_dir + when: netapproute.stdout.find("10.5.88.0") == -1 and datacenter == 'phx2' and not inventory_hostname.startswith(('buildvm-armv7','buildhw-aarch64','buildvm-s390x','koji01.stg', 'odcs-frontend01.stg')) and ( 'koji' in mnt_dir or 'fedora/app' in mnt_dir ) tags: - nfs/client