move to cop collection for inmem-test.yml
This commit is contained in:
@ -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:
|
||||
|
12
vars/job_launch_file_creation.yml
Normal file
12
vars/job_launch_file_creation.yml
Normal file
@ -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 }}"
|
||||
|
||||
|
||||
...
|
Reference in New Issue
Block a user