copr-builder: attempt to use ansible facts in when condition

This commit is contained in:
clime 2017-12-14 15:21:36 +01:00
parent e54fc2a119
commit 0280a3ffdb
2 changed files with 1 additions and 2 deletions

View file

@ -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"

View file

@ -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: