Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move inventory source sync into awx.awx.inventory_source object #14427

Open
4 of 9 tasks
jorymil opened this issue Sep 8, 2023 · 0 comments
Open
4 of 9 tasks

Move inventory source sync into awx.awx.inventory_source object #14427

jorymil opened this issue Sep 8, 2023 · 0 comments
Labels
community component:awx_collection issues related to the collection for controlling AWX type:enhancement

Comments

@jorymil
Copy link

jorymil commented Sep 8, 2023

Please confirm the following

  • I agree to follow this project's code of conduct.
  • I have checked the current issues for duplicates.
  • I understand that AWX is open source software provided for free and that I might not receive a timely response.

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

  • UI
  • API
  • Docs
  • Collection
  • CLI
  • Other

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

@github-actions github-actions bot added component:awx_collection issues related to the collection for controlling AWX needs_triage type:enhancement community labels Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community component:awx_collection issues related to the collection for controlling AWX type:enhancement
Projects
None yet
Development

No branches or pull requests

2 participants