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:
parent
624dbd04a9
commit
252f6be758
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue