From 2a1f1a6e195e9e585dc2037f2e8d393d52b7a19d Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Thu, 4 Oct 2018 15:37:37 +0000 Subject: [PATCH] I ALWAYS get this variable name wrong.... You'd think I'd learn... Signed-off-by: Patrick Uiterwijk --- playbooks/groups/oci-registry.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playbooks/groups/oci-registry.yml b/playbooks/groups/oci-registry.yml index 80e2b36416..8210450478 100644 --- a/playbooks/groups/oci-registry.yml +++ b/playbooks/groups/oci-registry.yml @@ -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"