add long-running-job-test.yml

This commit is contained in:
Chris Hammer
2022-04-05 17:05:56 -04:00
parent ce412f1479
commit 6718bc3708

19
long-running-job-test.yml Normal file
View 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
...