Merge pull request #1372 from jpmens/rst_template1
module_formatter: .rst now correctly handles code examples
This commit is contained in:
commit
16788f8357
3 changed files with 3 additions and 4 deletions
2
cron
2
cron
|
@ -101,7 +101,7 @@ options:
|
|||
examples:
|
||||
- code: cron name="check dirs" hour="5,2" job="ls -alh > /dev/null"
|
||||
description: Ensure a job that runs at 2 and 5 exists. Creates an entry like "* 5,2 * * ls -alh > /dev/null"
|
||||
- code: name="an old job" cron job="/some/dir/job.sh" state=absent
|
||||
- code: cron name="an old job" cron job="/some/dir/job.sh" state=absent
|
||||
description: 'Ensure an old job is no longer present. Removes any job that is preceded by "#Ansible: an old job" in the crontab'
|
||||
requirements: cron
|
||||
author: Dane Summers
|
||||
|
|
2
debug
2
debug
|
@ -48,7 +48,7 @@ options:
|
|||
required: false
|
||||
default: "no"
|
||||
examples:
|
||||
- code:
|
||||
- code: |
|
||||
- local_action: debug msg="System $inventory_hostname has uuid $ansible_product_uuid"
|
||||
- local_action: debug msg="System $inventory_hostname lacks a gateway" fail=yes
|
||||
only_if: "is_unset('${ansible_default_ipv4.gateway}')"
|
||||
|
|
3
fireball
3
fireball
|
@ -51,8 +51,7 @@ examples:
|
|||
sudo: yes
|
||||
tasks:
|
||||
- action: fireball
|
||||
|
||||
- hosts: devservers
|
||||
- hosts: devservers
|
||||
connection: fireball
|
||||
tasks:
|
||||
- action: command /usr/bin/anything
|
||||
|
|
Loading…
Reference in a new issue