This repository has been archived by the owner on Oct 25, 2024. It is now read-only.
forked from ansible/ansible-tower-samples
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathproduct_demos.yml
116 lines (112 loc) · 3.5 KB
/
product_demos.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
---
- name: Configure for Ansible Product Demos
hosts: localhost
vars:
controller_validate_certs: false
controller_settings:
- name: AWX_COLLECTIONS_ENABLED
value: "false"
controller_credentials:
- name: Automation Hub
organization: Default
credential_type: Ansible Galaxy/Automation Hub API Token
update_secrets: false
inputs:
url: https://console.redhat.com/api/automation-hub/
auth_url: https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token
controller_execution_environments:
- name: product-demos
image: quay.io/acme_corp/product-demos-ee:latest
controller_organizations:
- name: Default
default_environment:
name: 'product-demos'
galaxy_credentials:
- Ansible Galaxy
- Automation Hub
controller_projects:
- name: Ansible official demo project
organization: Default
scm_type: git
scm_url: "{{ product_demos_url | default('https://github.com/ansible/product-demos') }}"
scm_branch: "{{ product_demos_branch | default('main') }}"
wait: true
controller_templates:
- name: "SETUP"
job_type: run
inventory: "Demo Inventory"
project: "Ansible official demo project"
playbook: "setup_demo.yml"
credentials: "Controller Credential"
allow_simultaneous: true
survey_enabled: true
survey_spec:
name: 'Survey'
description: ''
spec:
- type: multiplechoice
question_name: Demo Category
variable: demo
required: true
choices:
- linux
- windows
- cloud
- network
- openshift
- satellite
extra_vars:
operation_translate:
present:
verb: "Create/Update"
action: "creation"
absent:
verb: "Remove"
action: "deletion"
exists:
verb: "Already Exists"
action: "exists"
- name: "Multi-SETUP demos"
project: "Ansible official demo project"
playbook: "multi_select_setup.yml"
inventory: "Demo Inventory"
credentials: "Controller Credential"
survey_enabled: true
survey:
name: ''
description: ''
spec:
- question_name: "Which demos do you want to configure?"
type: multiselect
variable: demos
required: true
default: "cloud\nlinux\nnetwork\nopenshift\nwindows"
choices:
- cloud
- linux
- network
- openshift
- satellite
- windows
extra_vars:
operation_translate:
present:
verb: "Create/Update"
action: "creation"
absent:
verb: "Remove"
action: "deletion"
exists:
verb: "Already Exists"
action: "exists"
user_message:
- Run the SETUP job template and select a use case
- Find more documentation at https://github.com/ansible/product-demos/
tasks:
- name: Setup Components
include_role:
name: infra.controller_configuration.dispatch
- name: Print Message
debug:
msg: "{{ user_message }}"
when: user_message is defined