mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
17 lines
347 B
YAML
17 lines
347 B
YAML
|
- name: Launch a Job Template
|
||
|
tower_job_launch:
|
||
|
job_template: "Demo Job Template"
|
||
|
inventory: "Demo Inventory"
|
||
|
credential: "Demo Credential"
|
||
|
register: job
|
||
|
|
||
|
- assert:
|
||
|
that:
|
||
|
- "job is changed"
|
||
|
- "job.status == 'pending'"
|
||
|
|
||
|
- name: Wait for the Job to finish
|
||
|
tower_job_wait:
|
||
|
job_id: "{{ job.id }}"
|
||
|
timeout: 60
|