Skip to content
This repository has been archived by the owner on Jun 18, 2021. It is now read-only.

Commit

Permalink
add_awx_credentials (#18)
Browse files Browse the repository at this point in the history
* add_awx_credentials

* user correct env vars
  • Loading branch information
mnecas authored and machacekondra committed Aug 15, 2018
1 parent c394d5d commit c729929
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tasks/glance_image.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
---
- block:
- name: Login to oVirt
ovirt_auth:
url: "{{ engine_url | default(lookup('env','OVIRT_URL')) | default(omit) }}"
username: "{{ engine_user | default(lookup('env','OVIRT_USERNAME')) | default(omit) }}"
password: "{{ engine_password | default(lookup('env','OVIRT_PASSWORD')) | default(omit) }}"
ca_file: "{{ engine_cafile | default(lookup('env','OVIRT_CAFILE')) | default(omit) }}"
insecure: "{{ engine_insecure | default(true) }}"
when: ovirt_auth is undefined
register: loggedin
tags:
- always

- name: Check if template is correct
fail:
msg: "one of mandatory parameters glance_image_provider or glance_image is not defined"
Expand Down

0 comments on commit c729929

Please sign in to comment.