Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
e108d175
Commit
e108d175
authored
Sep 28, 2012
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1132 from jpmens/m-doc-inifile
removed EXAMPLES from ini_file
parents
bc01f0d6
0649e637
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
12 deletions
+9
-12
library/ini_file
+9
-12
No files found.
library/ini_file
View file @
e108d175
...
...
@@ -62,6 +62,15 @@ 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.
...
...
@@ -69,18 +78,6 @@ 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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment