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