No NFS on candidate

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2018-10-04 15:36:15 +00:00
parent 10e7ff3842
commit d0796a2b7d

View file

@ -25,11 +25,11 @@
- { role: nfs/client,
mnt_dir: '/srv/registry',
nfs_src_dir: "oci_registry_stg",
when: "env == 'staging'" }
when: "env == 'staging' and 'candidate' not in ansible_inventory_name" }
- { role: nfs/client,
mnt_dir: '/srv/registry',
nfs_src_dir: "oci_registry",
when: "env != 'staging'" }
when: "env != 'staging' and 'candidate' not in ansible_inventory_name" }
pre_tasks:
- import_tasks: "{{ tasks_path }}/yumrepos.yml"