Examples syntax batch4 (#5620)

* Change example syntax on authorized_key module

* Change example syntax on cron module

* Change example syntax on group module

* Change example syntax on hostname module

* Change example syntax on seboolean module

* Change example syntax on selinux module

* Change example syntax on service module

* Change example syntax on sysctl module

* Change example syntax on systemd module

* Change example syntax on user module

* Change example syntax on debug module

* Change example syntax on fail module

* Change example syntax on include module

* Change example syntax on include_role module

* Change example syntax on include_vars module

* Change example syntax on pause module

* Change example syntax on wait_for module

* Change example syntax on apache2_module module

* > Change example syntax on django_manage module

* Change example syntax on htpasswd module
This commit is contained in:
Sam Doran 2016-11-15 15:21:47 -05:00 committed by Matt Clay
commit b56a9852ee
20 changed files with 261 additions and 87 deletions

View file

@ -78,25 +78,41 @@ options:
EXAMPLES = '''
# Example action to start service httpd, if not running
- service: name=httpd state=started
- service:
name: httpd
state: started
# Example action to stop service httpd, if running
- service: name=httpd state=stopped
- service:
name: httpd
state: stopped
# Example action to restart service httpd, in all cases
- service: name=httpd state=restarted
- service:
name: httpd
state: restarted
# Example action to reload service httpd, in all cases
- service: name=httpd state=reloaded
- service:
name: httpd
state: reloaded
# Example action to enable service httpd, and not touch the running state
- service: name=httpd enabled=yes
- service:
name: httpd
enabled: yes
# Example action to start service foo, based on running process /usr/bin/foo
- service: name=foo pattern=/usr/bin/foo state=started
- service:
name: foo
pattern: /usr/bin/foo
state: started
# Example action to restart network service for interface eth0
- service: name=network state=restarted args=eth0
- service:
name: network
state: restarted
args: eth0
'''