mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
347 B
YAML
17 lines
347 B
YAML
7 years ago
|
- 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
|