mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-29 19:50:25 -07:00
Add fire and forget example
This commit is contained in:
parent
86e19cd8c8
commit
e582bd5ec5
2 changed files with 5 additions and 1 deletions
|
@ -9,6 +9,10 @@
|
||||||
action: command /bin/sleep 15
|
action: command /bin/sleep 15
|
||||||
async: 45
|
async: 45
|
||||||
poll: 5
|
poll: 5
|
||||||
|
- name: fire and forget
|
||||||
|
action: command /bin/sleep 15
|
||||||
|
async: 45
|
||||||
|
poll: 0
|
||||||
- include: base.yml favcolor=blue
|
- include: base.yml favcolor=blue
|
||||||
- name: write the foo config file using vars set above
|
- name: write the foo config file using vars set above
|
||||||
action: template src=foo.j2 dest=/etc/some_random_foo.conf
|
action: template src=foo.j2 dest=/etc/some_random_foo.conf
|
||||||
|
|
|
@ -283,7 +283,7 @@ class PlayBook(object):
|
||||||
name = task['name']
|
name = task['name']
|
||||||
action = task['action']
|
action = task['action']
|
||||||
async_seconds = int(task.get('async', 0)) # not async by default
|
async_seconds = int(task.get('async', 0)) # not async by default
|
||||||
async_poll_interval = int(task.get('poll', 30)) # default poll = 30 seconds
|
async_poll_interval = int(task.get('poll', 10)) # default poll = 10 seconds
|
||||||
|
|
||||||
# comment = task.get('comment', '')
|
# comment = task.get('comment', '')
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue