Fixed documentation: "[a] ini file" -> "an ini file" (#76627)

pull/76645/head
Or Bin 3 years ago committed by GitHub
parent fdf12542b2
commit a1d0e60703
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -210,7 +210,7 @@ The dynamic inventory script queries the Packet API for a list of hosts, and exp
You can find it in Ansible Community General Collection's git repo at `scripts/inventory/packet_net.py <https://raw.githubusercontent.com/ansible-community/contrib-scripts/main/inventory/packet_net.py>`_.
The inventory script is configurable via a `ini file <https://raw.githubusercontent.com/ansible-community/contrib-scripts/main/inventory/packet_net.ini>`_.
The inventory script is configurable through an `ini file <https://raw.githubusercontent.com/ansible-community/contrib-scripts/main/inventory/packet_net.ini>`_.
If you want to use the inventory script, you must first export your Packet API token to a PACKET_API_TOKEN environment variable.

@ -8,7 +8,7 @@ DOCUMENTATION = """
name: ini
author: Yannig Perre (!UNKNOWN) <yannig.perre(at)gmail.com>
version_added: "2.0"
short_description: read data from a ini file
short_description: read data from an ini file
description:
- "The ini lookup reads the contents of a file in INI format C(key1=value1).
This plugin retrieves the value on the right side after the equal sign C('=') of a given section C([section])."
@ -45,7 +45,7 @@ DOCUMENTATION = """
version_added: '2.12'
allow_no_value:
description:
- Read ini file which contains key without value and without '=' symbol.
- Read an ini file which contains key without value and without '=' symbol.
type: bool
default: False
aliases: ['allow_none']
@ -63,7 +63,7 @@ EXAMPLES = """
msg: "{{ item }}"
loop: "{{ q('ini', '.*', section='section1', file='test.ini', re=True) }}"
- name: Read ini file with allow_no_value
- name: Read an ini file with allow_no_value
debug:
msg: "{{ lookup('ini', 'user', file='mysql.ini', section='mysqld', allow_no_value=True) }}"
"""

Loading…
Cancel
Save