Ansible Tower - Unable To Remove Host From Inventory During A Scoped Job Template Run

Rundown of issue:

  • I have a test inventory.
  • I have a job template that has limit as prompt on launch so that I can scope to a single node/host.
  • I can run the job against a single host in the test inventory by using the limit, however, while that job template is running I am unable to remove any inventory items from the test inventory.

I can verify this issue (outside of automation), by going into tower and creating a fake host entry into the inventory. Running the job template against a working host in the inventory, and then trying to remove the fake entry.

I get denied because the ‘resource is in use’. It is almost as if it is ignoring the fact that the job template run has been scoped to a single item, and is locking down the inventory.

At this time I’m hoping to find out if this is expected behavior or if it is a bug.

Great steps to recreate. Expected behavior. Awx doesn’t attempt to interpret the ansible limit

Thanks for the response. I appreciate it!