awx.awx.tower_inventory_source_update – Update inventory source(s).¶
Note
This plugin is part of the awx.awx collection (version 17.1.0).
To install it use: ansible-galaxy collection install awx.awx
.
To use it in a playbook, specify: awx.awx.tower_inventory_source_update
.
Synopsis¶
Update Ansible Tower inventory source(s). See https://www.ansible.com/tower for an overview.
Parameters¶
Notes¶
Note
If no config_file is provided we will attempt to use the tower-cli library defaults to find your Tower host information.
config_file should contain Tower configuration in the following format host=hostname username=username password=password
Examples¶
- name: Update a single inventory source
tower_inventory_source_update:
name: "Example Inventory Source"
inventory: "My Inventory"
organization: Default
- name: Update all inventory sources
tower_inventory_source_update:
name: "{{ item }}"
inventory: "My Other Inventory"
loop: "{{ query('awx.awx.tower_api', 'inventory_sources', query_params={ 'inventory': 30 }, return_ids=True ) }}"
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Key | Returned | Description |
---|---|---|
id
integer
|
success |
id of the inventory update
Sample:
86
|
status
string
|
success |
status of the inventory update
Sample:
pending
|
Authors¶
Bianca Henderson (@beeankha)