From 2e673729192083b6e7ec0a8a5bfcc0a1df1f490f Mon Sep 17 00:00:00 2001 From: Dag Wieers Date: Mon, 9 Mar 2015 16:16:58 +0100 Subject: [PATCH] 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. --- docsite/rst/playbooks_intro.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docsite/rst/playbooks_intro.rst b/docsite/rst/playbooks_intro.rst index ecf8d46de1e..db6dcbcaeba 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