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 <cverna@tutanota.com>
This commit is contained in:
parent
13d5177ce4
commit
f6914e9125
1 changed files with 3 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue