vultr – Vultr inventory source

From Get docs
< Inventory PluginsAnsible/docs/2.7/plugins/inventory/vultr


vultr – Vultr inventory source

Synopsis

  • Get inventory hosts from Vultr public cloud.
  • Uses api_config, ~/.vultr.ini, ./vultr.ini or VULTR_API_CONFIG path to config file.

Parameters

Parameter Choices/Defaults Configuration Comments

api_account

-

Default:

"default"

Specify the account to be used.

api_config

-

env:VULTR_API_CONFIG

Path to the vultr configuration file. If not specified will be taken from regular Vultr configuration.

api_key

-

env:VULTR_API_KEY

Vultr API key. If not specified will be taken from regular Vultr configuration.

hostname

string

  • v4_main_ip

  • v6_main_ip
  • name

Field to match the hostname. Note v4_main_ip corresponds to the main_ip field returned from the API and name to label.

plugin

- / required

  • vultr

token that ensures this is a source file for the 'vultr' plugin.



Examples

# vultr_inventory.yml file in YAML format
# Example command line: ansible-inventory --list -i vultr_inventory.yml

plugin: vultr

Status

Authors

  • Yanis Guenane (@Spredzy)

Hint

If you notice any issues in this documentation you can edit this document to improve it.


© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.7/plugins/inventory/vultr.html