I ALWAYS get this variable name wrong.... You'd think I'd learn...

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

View file

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