Move inventory source sync into awx.awx.inventory_source object #14427
Labels
community
component:awx_collection
issues related to the collection for controlling AWX
type:enhancement
Please confirm the following
Feature type
New Feature
Feature Summary
When awx.awx.inventory_source objects are applied in a playbook, the underlying inventory source is not actually synced: changes to variables, for example, do not take effect unless I manually sync inventory sources or apply the separate awx.awx.inventory_source_update object.
This request is to add a new "sync_source" boolean (or similar name) to the awx.awx.inventory_source module. ansible.builtin modules already do similar things, for example https://docs.ansible.com/ansible/latest/collections/ansible/builtin/apt_repository_module.html#parameter-update_cache , so this seems like a reasonable feature.
To maintain current behavior, this behavior should probably default to false, though I wouldn't object to always syncing inventory sources.
Select the relevant components
Steps to reproduce
- name: my_inventory_source awx.awx.inventory_source: name: "my_inventory_source" inventory: "my_inventory" state: present source: "scm" sync_source: true
should cause the inventory source to be synced.
Current results
N/A
Sugested feature result
This will streamline playbooks for managing AWX objects - having a separate "update object" object that syncs another object is something of a workaround and goes against the "noun rather than verb" philosophy of Ansible.
Additional information
No response
The text was updated successfully, but these errors were encountered: