move to cop collection for inmem-test.yml
This commit is contained in:
@ -28,6 +28,7 @@
|
|||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- vars/defaults.yml
|
- vars/defaults.yml
|
||||||
|
- vars/job_launch_file_creation.yml
|
||||||
|
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
@ -56,19 +57,8 @@
|
|||||||
- "msg : {{ r_check_file.msg }}"
|
- "msg : {{ r_check_file.msg }}"
|
||||||
|
|
||||||
|
|
||||||
- name: Re-create files as needed
|
- include_role:
|
||||||
uri:
|
name: redhat_cop.tower_configuration.job_launch
|
||||||
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
|
|
||||||
|
|
||||||
|
|
||||||
always:
|
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