Note
This plugin is part of the awx.awx collection.
To install it use: ansible-galaxy collection install awx.awx
.
To use it in a playbook, specify: awx.awx.tower_inventory_source
.
Parameter | Choices/Defaults | Comments |
---|---|---|
credential string | Credential to use for the source. | |
custom_virtualenv string | Local absolute file path containing a custom Python virtualenv to use. | |
description string | The description to use for the inventory source. | |
group_by string | Limit groups automatically created from inventory source. | |
instance_filters string | Comma-separated list of filter expressions for matching hosts. | |
inventory string / required | Inventory the group should be made a member of. | |
name string / required | The name to use for the inventory source. | |
new_name string | A new name for this assets (will rename the asset) | |
notification_templates_error list / elements=string | list of notifications to send on error | |
notification_templates_started list / elements=string | list of notifications to send on start | |
notification_templates_success list / elements=string | list of notifications to send on success | |
overwrite boolean |
| Delete child groups and hosts not found in source. |
overwrite_vars boolean |
| Override vars in child groups and hosts with those from external source. |
source string |
| The source to use for this group. |
source_path string | For an SCM based inventory source, the source path points to the file within the repo to use as an inventory. | |
source_project string | Project to use as source with scm option | |
source_regions string | Regions for cloud provider. | |
source_script string | Inventory script to be used when group type is custom . | |
source_vars dictionary | The variables or environment fields to apply to this source type. | |
state string |
| Desired state of the resource. |
timeout integer | The amount of time (in seconds) to run before the task is canceled. | |
tower_config_file path | Path to the Tower or AWX config file. If provided, the other locations for config files will not be considered. | |
tower_host string | URL to your Tower or AWX instance. If value not set, will try environment variable TOWER_HOST and then config filesIf value not specified by any means, the value of 127.0.0.1 will be used | |
tower_oauthtoken raw added in 3.7 of awx.awx | The Tower OAuth token to use. This value can be in one of two formats. A string which is the token itself. (i.e. bqV5txm97wqJqtkxlMkhQz0pKhRMMX) A dictionary structure as returned by the tower_token module. If value not set, will try environment variable TOWER_OAUTH_TOKEN and then config files | |
tower_password string | Password for your Tower or AWX instance. If value not set, will try environment variable TOWER_PASSWORD and then config files | |
tower_username string | Username for your Tower or AWX instance. If value not set, will try environment variable TOWER_USERNAME and then config files | |
update_cache_timeout integer | Time in seconds to consider an inventory sync to be current. | |
update_on_launch boolean |
| Refresh inventory data from its source each time a job is run. |
update_on_project_update boolean |
| Update this source when the related project updates if source is scm
|
validate_certs boolean |
| Whether to allow insecure connections to Tower or AWX. If no , SSL certificates will not be validated.This should only be used on personally controlled sites using self-signed certificates. If value not set, will try environment variable TOWER_VERIFY_SSL and then config filesaliases: tower_verify_ssl |
verbosity integer |
| The verbosity level to run this inventory source under. |
Note
- name: Add an inventory source tower_inventory_source: name: "source-inventory" description: Source for inventory inventory: previously-created-inventory credential: previously-created-credential overwrite: True update_on_launch: True source_vars: private: false
© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.10/collections/awx/awx/tower_inventory_source_module.html