mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
* Initial commit
* Update plugins/inventory/proxmox.py
Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 2d6816e11e
)
Co-authored-by: Ajpantuso <ajpantuso@gmail.com>
This commit is contained in:
parent
3f119aa9b6
commit
0484abdddd
1 changed files with 13 additions and 2 deletions
|
@ -88,13 +88,24 @@ DOCUMENTATION = '''
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
|
# Minimal example which will not gather additional facts for QEMU/LXC guests
|
||||||
|
# By not specifying a URL the plugin will attempt to connect to the controller host on port 8006
|
||||||
# my.proxmox.yml
|
# my.proxmox.yml
|
||||||
plugin: community.general.proxmox
|
plugin: community.general.proxmox
|
||||||
url: http://localhost:8006
|
|
||||||
user: ansible@pve
|
user: ansible@pve
|
||||||
password: secure
|
password: secure
|
||||||
validate_certs: no
|
|
||||||
|
# More complete example demonstrating the use of 'want_facts' and the constructed options
|
||||||
|
# Note that using facts returned by 'want_facts' in constructed options requires 'want_facts=true'
|
||||||
|
# my.proxmox.yml
|
||||||
|
plugin: community.general.proxmox
|
||||||
|
url: http://pve.domain.com:8006
|
||||||
|
user: ansible@pve
|
||||||
|
password: secure
|
||||||
|
validate_certs: false
|
||||||
|
want_facts: true
|
||||||
keyed_groups:
|
keyed_groups:
|
||||||
|
# proxmox_tags_parsed is an example of a fact only returned when 'want_facts=true'
|
||||||
- key: proxmox_tags_parsed
|
- key: proxmox_tags_parsed
|
||||||
separator: ""
|
separator: ""
|
||||||
prefix: group
|
prefix: group
|
||||||
|
|
Loading…
Reference in a new issue