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

Deleting hosts in Ansible tower dynamically. #13

Open
arun31101992 opened this issue Nov 20, 2018 · 0 comments
Open

Deleting hosts in Ansible tower dynamically. #13

arun31101992 opened this issue Nov 20, 2018 · 0 comments
Labels

Comments

@arun31101992
Copy link

I am working on deleting the hosts which are generated dynamically by integrating Ansible with ServiceNow CMDB.

For this I am creating workflow in ansible tower with 2 jobs. The first one will be python script(inventory sync) which will generate hosts and the second one is a playbook which has to delete hosts using ansible API's.

I am able to delete the hosts by providing id of the inventory source manually in playbook. Link which I am providing in playbook is: 'htps:///api/v2/inventory_sources/{id}/groups/'.

But I want to get the id of the inventory source from the 1st job when the workflow runs and it must be passed dynamically to 2nd job. please share your ideas how to do this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants