add job-launch.yml and collections support
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1,3 @@
|
|||||||
facts.d/*
|
facts.d/*
|
||||||
|
collections/ansible_collections
|
||||||
|
venv/*
|
||||||
|
4
collections/requirements.yml
Normal file
4
collections/requirements.yml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
collections:
|
||||||
|
- name: redhat_cop.tower_configuration
|
||||||
|
- name: awx.awx
|
27
job-launch.yml
Normal file
27
job-launch.yml
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
---
|
||||||
|
- name: Utilize workflow based on an in-memory inventory
|
||||||
|
hosts: localhost
|
||||||
|
connection: local
|
||||||
|
gather_facts: no
|
||||||
|
become: no
|
||||||
|
|
||||||
|
|
||||||
|
collections:
|
||||||
|
- awx.awx
|
||||||
|
- redhat_cop.tower_configuration
|
||||||
|
|
||||||
|
|
||||||
|
vars:
|
||||||
|
provision_host: "{{ tower_provision_host | default('localhost') }}"
|
||||||
|
|
||||||
|
|
||||||
|
vars_files:
|
||||||
|
- vars/job_launch_templates.yml
|
||||||
|
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- include_role:
|
||||||
|
name: redhat_cop.tower_configuration.job_launch
|
||||||
|
|
||||||
|
|
||||||
|
...
|
11
vars/job_launch_templates.yml
Normal file
11
vars/job_launch_templates.yml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
---
|
||||||
|
tower_launch_jobs:
|
||||||
|
- name: inmem_test
|
||||||
|
extra_vars:
|
||||||
|
tower_provision_host : "{{ provision_host }}"
|
||||||
|
tower_username : admin
|
||||||
|
tower_password : redhat
|
||||||
|
validate_cert : no
|
||||||
|
|
||||||
|
|
||||||
|
...
|
Reference in New Issue
Block a user