mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Add documentation for the ini lookup plugin.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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=_
|
||||
|
||||
Reference in New Issue
Block a user