mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 03:41:25 -07:00
[PR #9551/3f7ea607 backport][stable-10] Use multiple YAML documents for inventory plugin examples (#9559)
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>
(cherry picked from commit 3f7ea60766
)
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
8b56b6dfea
commit
b23d011582
14 changed files with 50 additions and 44 deletions
|
@ -77,6 +77,7 @@ EXAMPLES = r'''
|
|||
# scaleway_inventory.yml file in YAML format
|
||||
# Example command line: ansible-inventory --list -i scaleway_inventory.yml
|
||||
|
||||
---
|
||||
# use hostname as inventory_hostname
|
||||
# use the private IP address to connect to the host
|
||||
plugin: community.general.scaleway
|
||||
|
@ -91,6 +92,7 @@ variables:
|
|||
ansible_host: private_ip
|
||||
state: state
|
||||
|
||||
---
|
||||
# use hostname as inventory_hostname and public IP address to connect to the host
|
||||
plugin: community.general.scaleway
|
||||
hostnames:
|
||||
|
@ -100,6 +102,7 @@ regions:
|
|||
variables:
|
||||
ansible_host: public_ip.address
|
||||
|
||||
---
|
||||
# Using static strings as variables
|
||||
plugin: community.general.scaleway
|
||||
hostnames:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue