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
0b94d3d3
Commit
0b94d3d3
authored
Mar 12, 2012
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replace 'foo' with a more meaningful example + 1 other typo
parent
37adadcc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
rst/playbooks.rst
+4
-4
No files found.
rst/playbooks.rst
View file @
0b94d3d3
...
...
@@ -171,7 +171,7 @@ change, but only if the file changes::
action: template src=template.j2 dest=/etc/foo.conf
notify:
- restart memcached
- restart
foo
- restart
apache
Next up, we'll show what a handler looks like.
...
...
@@ -190,10 +190,10 @@ of the tasks complete in a particular play.
Here's an example handlers section::
handlers:
- name: restart apache
action: service name=apache state=restarted
- name: restart memcached
action: service name=memcached state=restarted
- name: restart apache
action: service name=apache state=restarted
Handlers are best used to restart services and trigger reboots. You probably
won't need them for much else.
...
...
@@ -361,7 +361,7 @@ Alternatively, if you do not need to wait on the task to complete, you may
- hosts: all
user: root
tasks:
- name: simulate long running op
(15 sec), wait for up to 45, poll every 5
- name: simulate long running op
, allow to run for 45, fire and forget
action: command /bin/sleep 15
async: 45
poll: 0
...
...
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