Skip to content

Commit a073e1a

Browse files
committed
Testing with command
1 parent 12f47b0 commit a073e1a

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

async_tasks.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,15 @@
1111
run_once: true
1212

1313
- name: Poll a sleep
14-
shell: "sleep 10"
14+
command: "sleep 10"
1515
async: 30
1616
poll: 5
1717

1818
- debug:
1919
msg: "I'm a debug message."
2020

2121
- name: Fire and forget a slow command
22-
shell: |
23-
sleep 15
24-
touch /tmp/test_file
22+
command: "sleep 15 && touch /tmp/test_file"
2523
async: 30
2624
poll: 0
2725
register: fired
@@ -36,9 +34,7 @@
3634
retries: 20
3735

3836
- name: Fire and forget a slow reversal
39-
shell: |
40-
sleep 10
41-
rm -f /tmp/test_file
37+
command: "sleep 10 && rm -f /tmp/test_file"
4238
async: 30
4339
poll: 0
4440
register: fired

0 commit comments

Comments
 (0)