summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDag Wieers <dag@wieers.com>2015-03-09 16:16:58 +0100
committerDag Wieers <dag@wieers.com>2015-03-09 16:16:58 +0100
commit2e673729192083b6e7ec0a8a5bfcc0a1df1f490f (patch)
tree47d081e3d686d36f538a3eae38adac7c7f3611d6
parent08617c087b368e9b93f7f5a668fd78ffeeb6c038 (diff)
downloadansible-2e673729192083b6e7ec0a8a5bfcc0a1df1f490f.tar.gz
Make the example somewhat more feature complete
New users might think that "state=started" implies that the service is also started at boot-time, which isn't. By adding it, this change makes a clear distinction between the service state, and whether it is enabled (at boot). And makes the example more feature-complete as this is what most people would be doing anyway.
-rw-r--r--docsite/rst/playbooks_intro.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docsite/rst/playbooks_intro.rst b/docsite/rst/playbooks_intro.rst
index ecf8d46de1..db6dcbcaeb 100644
--- a/docsite/rst/playbooks_intro.rst
+++ b/docsite/rst/playbooks_intro.rst
@@ -67,8 +67,8 @@ For starters, here's a playbook that contains just one play::
template: src=/srv/httpd.j2 dest=/etc/httpd.conf
notify:
- restart apache
- - name: ensure apache is running
- service: name=httpd state=started
+ - name: ensure apache is running (and enable it at boot)
+ service: name=httpd state=started enabled=yes
handlers:
- name: restart apache
service: name=httpd state=restarted