copr-builder: fixes for s390x spawning
This commit is contained in:
parent
274d80ade8
commit
d3806102e9
1 changed files with 8 additions and 1 deletions
|
@ -1,4 +1,11 @@
|
|||
---
|
||||
- name: remove the hackish package breaking s390x subscriptions
|
||||
shell:
|
||||
cmd: rpm -evh `rpm -qa | grep katello-`
|
||||
when:
|
||||
- prepare_base_image is not defined
|
||||
- "'s390x' in lookup('env', 'RESALLOC_NAME')"
|
||||
|
||||
- name: setup the hostname so we can easily identify the box
|
||||
hostname: name="{{ lookup('env', 'RESALLOC_NAME') | default('unknown-builder') | replace('_', '-') }}"
|
||||
when: prepare_base_image is not defined
|
||||
|
@ -230,7 +237,7 @@
|
|||
password: "{{ copr_red_hat_subscription_password }}"
|
||||
consumer_name: "{{ lookup('env', 'RESALLOC_NAME') | default('unknown-builder') }}"
|
||||
pool_ids:
|
||||
- "{% if ansible_architecture == 's390x' %}2c96015276f1cf9d0176f248febd1241{% else %}8a85f9a17c71102f017ce611251c770f{% endif %}"
|
||||
- "{% if 's390x' in lookup('env', 'RESALLOC_NAME') %}2c96015276f1cf9d0176f248febd1241{% else %}8a85f9a17c71102f017ce611251c770f{% endif %}"
|
||||
when:
|
||||
- prepare_base_image is not defined
|
||||
- copr_red_hat_subscription_password is defined
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue