Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
e582bd5e
Commit
e582bd5e
authored
Mar 12, 2012
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add fire and forget example
parent
86e19cd8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
+5
-1
examples/playbook.yml
+4
-0
lib/ansible/playbook.py
+1
-1
No files found.
examples/playbook.yml
View file @
e582bd5e
...
...
@@ -9,6 +9,10 @@
action
:
command /bin/sleep 15
async
:
45
poll
:
5
-
name
:
fire and forget
action
:
command /bin/sleep 15
async
:
45
poll
:
0
-
include
:
base.yml favcolor=blue
-
name
:
write the foo config file using vars set above
action
:
template src=foo.j2 dest=/etc/some_random_foo.conf
...
...
lib/ansible/playbook.py
View file @
e582bd5e
...
...
@@ -283,7 +283,7 @@ class PlayBook(object):
name
=
task
[
'name'
]
action
=
task
[
'action'
]
async_seconds
=
int
(
task
.
get
(
'async'
,
0
))
# not async by default
async_poll_interval
=
int
(
task
.
get
(
'poll'
,
30
))
# default poll = 3
0 seconds
async_poll_interval
=
int
(
task
.
get
(
'poll'
,
10
))
# default poll = 1
0 seconds
# comment = task.get('comment', '')
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment