Skip to content

Commit

Permalink
Testing with command
Browse files Browse the repository at this point in the history
Testing with become true

Testing with become yes
  • Loading branch information
CFSNM committed Nov 24, 2021
1 parent a073e1a commit 4a50975
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.pyc
.idea

/tower_collection_actual.yml
13 changes: 9 additions & 4 deletions async_tasks.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---

- hosts: all
- name: Run Async Tasks playbooks
hosts: all
gather_facts: false
tasks:

Expand All @@ -13,7 +14,7 @@
- name: Poll a sleep
command: "sleep 10"
async: 30
poll: 5
poll: 0

- debug:
msg: "I'm a debug message."
Expand All @@ -28,7 +29,9 @@
msg: "I'm another debug message."

- name: Examine slow command
async_status: jid={{ fired.ansible_job_id }}
async_status:
jid: "{{ fired.ansible_job_id }}"
mode: status
register: slow_command
until: slow_command.finished
retries: 20
Expand All @@ -43,7 +46,9 @@
msg: "I'm yet another debug message."

- name: Examine slow reversal
async_status: jid={{ fired.ansible_job_id }}
async_status:
jid: "{{ fired.ansible_job_id }}"
mode: status
register: slow_command
until: slow_command.finished
retries: 20

0 comments on commit 4a50975

Please # to comment.