Inventory Source module dosen't delete hosts and groups. #15366
Labels
community
component:awx_collection
issues related to the collection for controlling AWX
help wanted
type:enhancement
Please confirm the following
Feature type
Enhancement to Existing Feature
Feature Summary
Hi,
when using the module in AAP and AWX: inventory_source https://docs.ansible.com/ansible/latest/collections/awx/awx/inventory_source_module.html for deleting sources from inventory, when a source is deleted, the hosts and groups still exist and they are not deleted while when you delete them from IU they are deleted.
Select the relevant components
Steps to reproduce
awx.awx.inventory_source:
controller_host: "https:/domain.com"
controller_username: "user"
controller_password: "123456"
name: "0987654321"
inventory: "AWS"
state: absent
This will delete the source but not the hosts... there should be a nw argument for host_deletion: bool and group_deletion: bool.
Current results
The source from the invntory id well deleted but not the associated hosts and groups that has that source.
Sugested feature result
I would think of add two new arguments host_deletion: bool and group_deletation: true that if those and state: absent are passed in the module it deletes the hosts and groups associated with the source.
Additional information
No response
The text was updated successfully, but these errors were encountered: