Skip to content

Commit 4a50975

Browse files
committed
Testing with command
Testing with become true Testing with become yes
1 parent a073e1a commit 4a50975

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
*.pyc
2+
.idea
23

34
/tower_collection_actual.yml

async_tasks.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22

3-
- hosts: all
3+
- name: Run Async Tasks playbooks
4+
hosts: all
45
gather_facts: false
56
tasks:
67

@@ -13,7 +14,7 @@
1314
- name: Poll a sleep
1415
command: "sleep 10"
1516
async: 30
16-
poll: 5
17+
poll: 0
1718

1819
- debug:
1920
msg: "I'm a debug message."
@@ -28,7 +29,9 @@
2829
msg: "I'm another debug message."
2930

3031
- name: Examine slow command
31-
async_status: jid={{ fired.ansible_job_id }}
32+
async_status:
33+
jid: "{{ fired.ansible_job_id }}"
34+
mode: status
3235
register: slow_command
3336
until: slow_command.finished
3437
retries: 20
@@ -43,7 +46,9 @@
4346
msg: "I'm yet another debug message."
4447

4548
- name: Examine slow reversal
46-
async_status: jid={{ fired.ansible_job_id }}
49+
async_status:
50+
jid: "{{ fired.ansible_job_id }}"
51+
mode: status
4752
register: slow_command
4853
until: slow_command.finished
4954
retries: 20

0 commit comments

Comments
 (0)