Use multiple YAML documents for inventory plugin examples (#9551)

* Use multiple YAML documents for inventory plugin examples.

* Add ignore.txt entries.

* Delete no longer needed ignore.txt files.

* Fix typo.

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>

---------

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
Felix Fontein 2025-01-08 19:37:55 +01:00 committed by GitHub
parent bf69dc46ff
commit 3f7ea60766
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 50 additions and 44 deletions

View file

@ -79,15 +79,18 @@ DOCUMENTATION = r'''
'''
EXAMPLES = r'''
---
# Minimal example. `LINODE_ACCESS_TOKEN` is exposed in environment.
plugin: community.general.linode
---
# You can use Jinja to template the access token.
plugin: community.general.linode
access_token: "{{ lookup('ini', 'token', section='your_username', file='~/.config/linode-cli') }}"
# For older Ansible versions, you need to write this as:
# access_token: "{{ lookup('ini', 'token section=your_username file=~/.config/linode-cli') }}"
---
# Example with regions, types, groups and access token
plugin: community.general.linode
access_token: foobar
@ -96,6 +99,7 @@ regions:
types:
- g5-standard-2
---
# Example with keyed_groups, groups, and compose
plugin: community.general.linode
access_token: foobar
@ -114,6 +118,7 @@ compose:
ansible_ssh_host: ipv4[0]
ansible_port: 2222
---
# Example where control traffic limited to internal network
plugin: community.general.linode
access_token: foobar