Skip to content

Commit

Permalink
Merge pull request ansible#1132 from jpmens/m-doc-inifile
Browse files Browse the repository at this point in the history
removed EXAMPLES from ini_file
  • Loading branch information
mpdehaan committed Sep 29, 2012
2 parents bc01f0d + 0649e63 commit e108d17
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions library/ini_file
Original file line number Diff line number Diff line change
Expand Up @@ -62,25 +62,22 @@ options:
description:
- all arguments accepted by the M(file) module also work here
required: false
examples:
- code: ini_file dest=/etc/conf section=drinks option=fav value=lemonade mode=0600 backup=true
description: Ensure C(fav=lemonade) is in section C([drinks]) in said file
- code: |
ini_file dest=/etc/anotherconf
section=drinks
option=temperature
value=cold
backup=true
notes:
- While it is possible to add an I(option) without specifying a I(value), this makes
no sense.
requirements: [ ConfigParser ]
author: Jan-Piet Mens
'''

EXAMPLES = [
"""
- code: ini_file dest=/etc/conf section=drinks option=fav value=lemonade mode=0600 backup=true
description: Ensure C(fav=lemonade) is in section C([drinks]) in said file
""",
""" ini_file dest=/etc/anotherconf
section=drinks
option=temperature
value=cold
backup=true
"""
]

import ConfigParser

Expand Down

0 comments on commit e108d17

Please sign in to comment.