add long-running-job-test.yml
This commit is contained in:
19
long-running-job-test.yml
Normal file
19
long-running-job-test.yml
Normal file
@ -0,0 +1,19 @@
|
||||
---
|
||||
- name: Long running job test
|
||||
hosts: all
|
||||
gather_facts: no
|
||||
become: no
|
||||
|
||||
|
||||
vars:
|
||||
time_to_sleep: 30
|
||||
|
||||
|
||||
tasks:
|
||||
- name: Simulate a long running job
|
||||
command: "sleep {{ tower_time_to_sleep | default(time_to_sleep) | default(10) }}"
|
||||
async: "{{ time_to_sleep + 10 }}" # give +10s leeway
|
||||
poll: 3
|
||||
|
||||
|
||||
...
|
Reference in New Issue
Block a user