add job-launch.yml and collections support

This commit is contained in:
Chris Hammer
2022-02-09 20:42:36 -05:00
parent ea5deb4943
commit 448904e9dc
4 changed files with 44 additions and 0 deletions

2
.gitignore vendored
View File

@ -1 +1,3 @@
facts.d/* facts.d/*
collections/ansible_collections
venv/*

View File

@ -0,0 +1,4 @@
---
collections:
- name: redhat_cop.tower_configuration
- name: awx.awx

27
job-launch.yml Normal file
View 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
...

View 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
...