openshift-apps/coreos-ostree-importer: the playbook is not a template
So we have to do conditionaly logic a different way.
This commit is contained in:
parent
7ed3f18333
commit
6ce0714365
1 changed files with 9 additions and 7 deletions
|
@ -14,13 +14,15 @@
|
|||
- fedora_messaging_ca_file: "coreos-ostree-importer-fedora-messaging-cacert.pem"
|
||||
- fedora_messaging_cert_file: "coreos-ostree-importer-fedora-messaging-cert.pem"
|
||||
- fedora_messaging_key_file: "coreos-ostree-importer-fedora-messaging-key.pem"
|
||||
{% if env == "staging" %}
|
||||
- fedora_messaging_routing_keys:
|
||||
- "org.fedoraproject.stg.coreos.build.request.ostree-import"
|
||||
{% else %}
|
||||
- fedora_messaging_routing_keys:
|
||||
- "org.fedoraproject.prod.coreos.build.request.ostree-import"
|
||||
{% endif %}
|
||||
|
||||
# Set the fedora_messaging_routing_keys var based on the environment
|
||||
tasks:
|
||||
- set_fact:
|
||||
fedora_messaging_routing_keys: "org.fedoraproject.stg.coreos.build.request.ostree-import"
|
||||
when: env == 'staging'
|
||||
- set_fact:
|
||||
fedora_messaging_routing_keys: "org.fedoraproject.prod.coreos.build.request.ostree-import"
|
||||
when: env != 'staging'
|
||||
|
||||
roles:
|
||||
- role: openshift/project
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue