oci-registry: only do the nfs mount on the non candidate registries

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2020-06-13 19:41:13 -07:00
parent 624dbd04a9
commit 252f6be758

View file

@ -25,7 +25,7 @@
- { role: nfs/client, - { role: nfs/client,
mnt_dir: '/srv/registry', mnt_dir: '/srv/registry',
nfs_src_dir: "oci_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: pre_tasks:
- name: Create /srv/registry on staging and candidate since it does not use NFS - name: Create /srv/registry on staging and candidate since it does not use NFS