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