From 0280a3ffdb53adb95836a04a107b1e0edfb45be2 Mon Sep 17 00:00:00 2001 From: clime Date: Thu, 14 Dec 2017 15:21:36 +0100 Subject: [PATCH] copr-builder: attempt to use ansible facts in when condition --- roles/copr/backend/files/provision/builderpb_nova.yml | 1 - roles/copr/backend/files/provision/provision_builder_tasks.yml | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/roles/copr/backend/files/provision/builderpb_nova.yml b/roles/copr/backend/files/provision/builderpb_nova.yml index 8d259c5dfc..814df7b161 100644 --- a/roles/copr/backend/files/provision/builderpb_nova.yml +++ b/roles/copr/backend/files/provision/builderpb_nova.yml @@ -40,7 +40,6 @@ vars: # pass this options if you need to create new base image from snapshot #prepare_base_image: True - env: {{ env }} tasks: - include: "provision_builder_tasks.yml" diff --git a/roles/copr/backend/files/provision/provision_builder_tasks.yml b/roles/copr/backend/files/provision/provision_builder_tasks.yml index e772b66a9f..c9054d686e 100644 --- a/roles/copr/backend/files/provision/provision_builder_tasks.yml +++ b/roles/copr/backend/files/provision/provision_builder_tasks.yml @@ -3,7 +3,7 @@ - name: put infra stg repos into yum.repos.d if staging copy: src=files/dnf/infra-tags-stg.repo dest=/etc/yum.repos.d - when: env == "staging" + when: ansible_hostname == "copr-be-dev" - name: disable updates-testing file: