From 448904e9dc1b0f634e1a9495e7a7c41fa49e027a Mon Sep 17 00:00:00 2001 From: Chris Hammer Date: Wed, 9 Feb 2022 20:42:36 -0500 Subject: [PATCH] add job-launch.yml and collections support --- .gitignore | 2 ++ collections/requirements.yml | 4 ++++ job-launch.yml | 27 +++++++++++++++++++++++++++ vars/job_launch_templates.yml | 11 +++++++++++ 4 files changed, 44 insertions(+) create mode 100644 collections/requirements.yml create mode 100644 job-launch.yml create mode 100644 vars/job_launch_templates.yml diff --git a/.gitignore b/.gitignore index c2f0137..c2c4753 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ facts.d/* +collections/ansible_collections +venv/* diff --git a/collections/requirements.yml b/collections/requirements.yml new file mode 100644 index 0000000..1ede69f --- /dev/null +++ b/collections/requirements.yml @@ -0,0 +1,4 @@ +--- +collections: + - name: redhat_cop.tower_configuration + - name: awx.awx diff --git a/job-launch.yml b/job-launch.yml new file mode 100644 index 0000000..1af383b --- /dev/null +++ b/job-launch.yml @@ -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 + + +... diff --git a/vars/job_launch_templates.yml b/vars/job_launch_templates.yml new file mode 100644 index 0000000..7065534 --- /dev/null +++ b/vars/job_launch_templates.yml @@ -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 + + +...