From c09972268aff5d3f2f1da0349276ff02617f5736 Mon Sep 17 00:00:00 2001 From: Chris Hammer Date: Thu, 10 Feb 2022 13:21:32 -0500 Subject: [PATCH] move to cop collection for inmem-test.yml --- inmem-test.yml | 16 +++------------- vars/job_launch_file_creation.yml | 12 ++++++++++++ ...h_templates.yml => job_launch_inmem_test.yml} | 0 3 files changed, 15 insertions(+), 13 deletions(-) create mode 100644 vars/job_launch_file_creation.yml rename vars/{job_launch_templates.yml => job_launch_inmem_test.yml} (100%) diff --git a/inmem-test.yml b/inmem-test.yml index cfde91b..a8d9597 100644 --- a/inmem-test.yml +++ b/inmem-test.yml @@ -28,6 +28,7 @@ vars_files: - vars/defaults.yml + - vars/job_launch_file_creation.yml tasks: @@ -56,19 +57,8 @@ - "msg : {{ r_check_file.msg }}" - - name: Re-create files as needed - uri: - url : "{{ tower_api_host }}/api/v2/job_templates/22/launch/" - method : POST - status_code : 201 - force_basic_auth : yes - url_username : "{{ tower_api_user }}" - url_password : "{{ tower_api_pass }}" - body_format : json - return_content : no - validate_certs : no - body: - trigger: me + - include_role: + name: redhat_cop.tower_configuration.job_launch always: diff --git a/vars/job_launch_file_creation.yml b/vars/job_launch_file_creation.yml new file mode 100644 index 0000000..505aa9d --- /dev/null +++ b/vars/job_launch_file_creation.yml @@ -0,0 +1,12 @@ +--- +tower_launch_jobs: + - name: file_creation_test + extra_vars: + host : "{{ inventory_hostname }}" + rc : "{{ r_check_file.rc }}" + stdout : "{{ r_check_file.stdout }}" + stderr : "{{ r_check_file.stderr }}" + msg : "{{ r_check_file.msg }}" + + +... diff --git a/vars/job_launch_templates.yml b/vars/job_launch_inmem_test.yml similarity index 100% rename from vars/job_launch_templates.yml rename to vars/job_launch_inmem_test.yml