Commit 0b94d3d3 by Michael DeHaan

replace 'foo' with a more meaningful example + 1 other typo

parent 37adadcc
...@@ -171,7 +171,7 @@ change, but only if the file changes:: ...@@ -171,7 +171,7 @@ change, but only if the file changes::
action: template src=template.j2 dest=/etc/foo.conf action: template src=template.j2 dest=/etc/foo.conf
notify: notify:
- restart memcached - restart memcached
- restart foo - restart apache
Next up, we'll show what a handler looks like. Next up, we'll show what a handler looks like.
...@@ -190,10 +190,10 @@ of the tasks complete in a particular play. ...@@ -190,10 +190,10 @@ of the tasks complete in a particular play.
Here's an example handlers section:: Here's an example handlers section::
handlers: handlers:
- name: restart apache
action: service name=apache state=restarted
- name: restart memcached - name: restart memcached
action: service name=memcached state=restarted 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 Handlers are best used to restart services and trigger reboots. You probably
won't need them for much else. 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 ...@@ -361,7 +361,7 @@ Alternatively, if you do not need to wait on the task to complete, you may
- hosts: all - hosts: all
user: root user: root
tasks: 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 action: command /bin/sleep 15
async: 45 async: 45
poll: 0 poll: 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment