copr-builder: attempt to use ansible facts in when condition
This commit is contained in:
parent
e54fc2a119
commit
0280a3ffdb
2 changed files with 1 additions and 2 deletions
|
@ -40,7 +40,6 @@
|
||||||
vars:
|
vars:
|
||||||
# pass this options if you need to create new base image from snapshot
|
# pass this options if you need to create new base image from snapshot
|
||||||
#prepare_base_image: True
|
#prepare_base_image: True
|
||||||
env: {{ env }}
|
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- include: "provision_builder_tasks.yml"
|
- include: "provision_builder_tasks.yml"
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
- name: put infra stg repos into yum.repos.d if staging
|
- name: put infra stg repos into yum.repos.d if staging
|
||||||
copy: src=files/dnf/infra-tags-stg.repo dest=/etc/yum.repos.d
|
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
|
- name: disable updates-testing
|
||||||
file:
|
file:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue