From 87996bb4c88e78934e62818fac4b02714e1272d0 Mon Sep 17 00:00:00 2001 From: Scott Weiss Date: Wed, 16 Aug 2017 11:46:27 +0300 Subject: skip openshift_cfme_nfs_server if not using nfs --- roles/openshift_cfme/tasks/nfs.yml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'roles/openshift_cfme/tasks') diff --git a/roles/openshift_cfme/tasks/nfs.yml b/roles/openshift_cfme/tasks/nfs.yml index 8db45492e..ca04628a8 100644 --- a/roles/openshift_cfme/tasks/nfs.yml +++ b/roles/openshift_cfme/tasks/nfs.yml @@ -1,6 +1,13 @@ --- # Tasks to statically provision NFS volumes # Include if not using dynamic volume provisioning + +- name: Set openshift_cfme_nfs_server fact + when: openshift_cfme_nfs_server is not defined + set_fact: + # Hostname/IP of the NFS server. Currently defaults to first master + openshift_cfme_nfs_server: "{{ oo_nfs_to_config.0 }}" + - name: Ensure the /exports/ directory exists file: path: /exports/ -- cgit v1.2.3