Add documentation for the ini lookup plugin.

This commit is contained in:
Yannig Perré
2015-08-05 11:09:40 +02:00
parent 733d40a77c
commit c0bd140959
4 changed files with 119 additions and 2 deletions

View File

@@ -6,8 +6,8 @@ value.dot=Properties with dot
field.with.space = another space
[section1]
value1=Another value for section1
# No value2 in this section
value1=section1/value1
value2=section1/value2
[value_section]
value1=1

View File

@@ -28,3 +28,13 @@
set_fact:
unknown: "{{lookup('ini', 'value2 default=unknown section=section1 file=lookup.ini')}}"
- debug: var=unknown
- name: "Looping over section section1"
debug: msg="{{item}}"
with_ini: value[1-2] section=section1 file=lookup.ini re=true
- name: "Looping over section value_section"
debug: msg="{{item}}"
with_ini: value[1-2] section=value_section file=lookup.ini re=true
- debug: msg="{{item}}"
with_ini: value[1-2] section=section1 file=lookup.ini re=true
register: _
- debug: var=_