From d0796a2b7d60713412ef08bfdd5dca0c688f94a6 Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Thu, 4 Oct 2018 15:36:15 +0000 Subject: [PATCH] No NFS on candidate Signed-off-by: Patrick Uiterwijk --- playbooks/groups/oci-registry.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playbooks/groups/oci-registry.yml b/playbooks/groups/oci-registry.yml index f4f008af6d..80e2b36416 100644 --- a/playbooks/groups/oci-registry.yml +++ b/playbooks/groups/oci-registry.yml @@ -25,11 +25,11 @@ - { role: nfs/client, mnt_dir: '/srv/registry', nfs_src_dir: "oci_registry_stg", - when: "env == 'staging'" } + when: "env == 'staging' and 'candidate' not in ansible_inventory_name" } - { role: nfs/client, mnt_dir: '/srv/registry', nfs_src_dir: "oci_registry", - when: "env != 'staging'" } + when: "env != 'staging' and 'candidate' not in ansible_inventory_name" } pre_tasks: - import_tasks: "{{ tasks_path }}/yumrepos.yml"