diff --git a/long-running-job-test.yml b/long-running-job-test.yml new file mode 100644 index 0000000..a606ab8 --- /dev/null +++ b/long-running-job-test.yml @@ -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 + + +...