online – Online inventory source
From Get docs
< Inventory PluginsAnsible/docs/2.8/plugins/inventory/online
online – Online inventory source
Synopsis
- Get inventory hosts from Online
Parameters
Parameter | Choices/Defaults | Configuration | Comments |
---|---|---|---|
groups list |
|
List of groups. | |
hostnames list |
Default: ["public_ipv4"] |
List of preference about what to use as an hostname. | |
oauth_token - / required |
env:ONLINE_TOKEN env:ONLINE_API_KEY env:ONLINE_OAUTH_TOKEN |
Online OAuth token. | |
plugin - / required |
|
token that ensures this is a source file for the 'online' plugin. |
Examples
# online_inventory.yml file in YAML format
# Example command line: ansible-inventory --list -i online_inventory.yml
plugin: online
hostnames:
- public_ipv4
groups:
- location
- offer
- rpn
Status
- This inventory is not guaranteed to have a backwards compatible interface. [preview]
- This inventory is maintained by the Ansible Community. [community]
Authors
- Remy Leone (@sieben)
Hint
Configuration entries for each entry type have a low to high priority order. For example, a variable that is lower in the list will override a variable that is higher up.
© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.8/plugins/inventory/online.html