BIN
ansible-product_demos-1.2.2.tar.gz
Normal file
BIN
ansible-product_demos-1.2.2.tar.gz
Normal file
Binary file not shown.
BIN
ansible-product_demos-1.2.4.tar.gz
Normal file
BIN
ansible-product_demos-1.2.4.tar.gz
Normal file
Binary file not shown.
@@ -1,11 +1,13 @@
|
|||||||
---
|
---
|
||||||
namespace: ansible
|
namespace: ansible
|
||||||
name: product_demos
|
name: product_demos
|
||||||
version: 1.2.1
|
version: 1.2.4
|
||||||
readme: README.md
|
readme: README.md
|
||||||
|
|
||||||
authors:
|
authors:
|
||||||
- Sean Cavanaugh <seanc@redhat.com> @IPvSean
|
- Sean Cavanaugh <seanc@redhat.com> @IPvSean
|
||||||
|
- David Rojas <drojas@redhat.com>
|
||||||
|
- Colin McNaughton <cmcnaugh@redhat.com>
|
||||||
|
|
||||||
description: repository of demos to showcase Ansible features.
|
description: repository of demos to showcase Ansible features.
|
||||||
|
|
||||||
|
|||||||
@@ -13,9 +13,4 @@
|
|||||||
tower_username: "{{ my_tower_username }}"
|
tower_username: "{{ my_tower_username }}"
|
||||||
tower_password: "{{ my_tower_password }}"
|
tower_password: "{{ my_tower_password }}"
|
||||||
tower_host: "{{ my_tower_host }}"
|
tower_host: "{{ my_tower_host }}"
|
||||||
|
validate_certs: false
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -20,10 +20,11 @@
|
|||||||
- "demo must be defined and be one of: {{ demo_list }}"
|
- "demo must be defined and be one of: {{ demo_list }}"
|
||||||
- "full list can be found on https://github.com/ansible/product-demos"
|
- "full list can be found on https://github.com/ansible/product-demos"
|
||||||
|
|
||||||
- name: install Azure cred
|
- name: setup public cloud credentials
|
||||||
include_tasks: azure_cred.yml
|
include_tasks: "{{item}}"
|
||||||
when:
|
with_first_found:
|
||||||
- azure_demo == True
|
- "{{role_path}}/tasks/{{public_cloud}}.yml"
|
||||||
|
- "{{role_path}}/tasks/unsupported_cloud.yml"
|
||||||
|
|
||||||
- name: install all job templates
|
- name: install all job templates
|
||||||
include_tasks: job_template_loop.yml
|
include_tasks: job_template_loop.yml
|
||||||
|
|||||||
16
roles/install_demo/tasks/unsupported_cloud.yml
Normal file
16
roles/install_demo/tasks/unsupported_cloud.yml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
- name: public cloud not supported
|
||||||
|
debug:
|
||||||
|
msg: "there is no public cloud credentials for this install, installing dummy creds"
|
||||||
|
|
||||||
|
- name: add azure credential
|
||||||
|
tower_credential:
|
||||||
|
name: azure_credential
|
||||||
|
description: Azure Service Principle
|
||||||
|
organization: "{{ vars[demo].project.organization }}"
|
||||||
|
state: present
|
||||||
|
kind: azure_rm
|
||||||
|
subscription: "please replace me"
|
||||||
|
tower_username: "{{ my_tower_username }}"
|
||||||
|
tower_password: "{{ my_tower_password }}"
|
||||||
|
tower_host: "{{ my_tower_host }}"
|
||||||
|
validate_certs: false
|
||||||
Reference in New Issue
Block a user