Hello,
After beating my head on this and quite honestly confusing myself pretty well, I’m putting this out to the list for some help.
I am able to use curl to:
- Get a token
- Use the token acquired in step 1 and issue another curl command to delete a host from inventory
I’m trying to do the same thing using a playbook I’ve written, and a Python program, specifically the requests module.
If all else fails, I can revert to using a shell script, but using Python would be my preferred route.
I’m just not sure how to structure my call.
This is my playbook: