From f6914e91251765df2f4d29d2b39f614d208b4a21 Mon Sep 17 00:00:00 2001 From: Clement Verna Date: Tue, 7 Jan 2020 20:50:31 +0100 Subject: [PATCH] OCI registry: do not use the NFS mount in staging or candidate. Fixes #https://pagure.io/fedora-infrastructure/issue/8507 Signed-off-by: Clement Verna --- playbooks/groups/oci-registry.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/playbooks/groups/oci-registry.yml b/playbooks/groups/oci-registry.yml index 231b5504fe..896b9a835c 100644 --- a/playbooks/groups/oci-registry.yml +++ b/playbooks/groups/oci-registry.yml @@ -25,17 +25,17 @@ - { role: nfs/client, mnt_dir: '/srv/registry', nfs_src_dir: "oci_registry", - when: "env != 'staging' and 'candidate' not in inventory_hostname" } + when: "env != 'staging' or 'candidate' not in inventory_hostname" } pre_tasks: - - name: Create /srv/registry on staging since it does not use NFS + - name: Create /srv/registry on staging and candidate since it does not use NFS file: path: /srv/registry state: directory owner: root group: root mode: 0755 - when: "env == 'staging' and 'candidate' not in inventory_hostname" + when: "env == 'staging' or 'candidate' not in inventory_hostname" - import_tasks: "{{ tasks_path }}/yumrepos.yml" tasks: