From edfe3915195c84189f06c86946021e705900e711 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Mon, 6 Jun 2022 15:28:09 -0700 Subject: [PATCH] oci-candidate-registry: move prod candidate to use a nfs volume Signed-off-by: Kevin Fenzi --- playbooks/groups/oci-registry.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/playbooks/groups/oci-registry.yml b/playbooks/groups/oci-registry.yml index b45f7d6b97..5ca0574398 100644 --- a/playbooks/groups/oci-registry.yml +++ b/playbooks/groups/oci-registry.yml @@ -29,15 +29,20 @@ nfs_src_dir: "oci_registry" when: inventory_hostname.startswith(('oci-registry01.iad2', 'oci-registry02.iad2')) + - role: nfs/client + mnt_dir: '/srv/registry' + nfs_src_dir: "oci_candidate_registry" + when: inventory_hostname.startswith(('oci-candidate-registry01.iad2')) + pre_tasks: - - name: Create /srv/registry on staging and candidate since it does not use NFS + - name: Create /srv/registry on staging since it does not use NFS file: path: /srv/registry state: directory owner: root group: root mode: 0755 - when: "env == 'staging' or 'candidate' not in inventory_hostname" + when: "env == 'staging'" - import_tasks: "{{ tasks_path }}/yumrepos.yml" tasks: