From 252f6be758380f5d8865a384b266d1609a72b78b Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Sat, 13 Jun 2020 19:41:13 -0700 Subject: [PATCH] oci-registry: only do the nfs mount on the non candidate registries Signed-off-by: Kevin Fenzi --- playbooks/groups/oci-registry.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/groups/oci-registry.yml b/playbooks/groups/oci-registry.yml index 2fc8ecba50..8caddc9f88 100644 --- a/playbooks/groups/oci-registry.yml +++ b/playbooks/groups/oci-registry.yml @@ -25,7 +25,7 @@ - { role: nfs/client, mnt_dir: '/srv/registry', nfs_src_dir: "oci_registry", - when: "env != 'staging' or 'candidate' not in inventory_hostname" } + when: inventory_hostname.startswith(('oci-registry01.iad2','oci-registry02.iad2')) } pre_tasks: - name: Create /srv/registry on staging and candidate since it does not use NFS