We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12f47b0 commit a073e1aCopy full SHA for a073e1a
async_tasks.yml
@@ -11,17 +11,15 @@
11
run_once: true
12
13
- name: Poll a sleep
14
- shell: "sleep 10"
+ command: "sleep 10"
15
async: 30
16
poll: 5
17
18
- debug:
19
msg: "I'm a debug message."
20
21
- name: Fire and forget a slow command
22
- shell: |
23
- sleep 15
24
- touch /tmp/test_file
+ command: "sleep 15 && touch /tmp/test_file"
25
26
poll: 0
27
register: fired
@@ -36,9 +34,7 @@
36
34
retries: 20
37
35
38
- name: Fire and forget a slow reversal
39
40
- sleep 10
41
- rm -f /tmp/test_file
+ command: "sleep 10 && rm -f /tmp/test_file"
42
43
44
0 commit comments