adammck / terraform-inventory

Terraform State → Ansible Dynamic Inventory
MIT License
1.82k stars 321 forks source link

Ansible tower using terraform inventory? #71

Open ghost opened 7 years ago

ghost commented 7 years ago

Hi there,

How can integrate the terraform inventory script with ansible tower? . My plan is to run playbook from tower and i need to sync all my hostname information to ansible inventory. can you please help on this?

adammck commented 7 years ago

I'm sorry, but I don't know anything about Ansible Tower. I'll leave this issue open in case anyone else can help. Please send an update if you figure it out.

ghost commented 7 years ago

Ansible Tower is a web-based interface for managing Ansible. I will surely update you if i have a solution.thanks.

tchia04 commented 6 years ago

ansible tower has dynamic inventory script http://docs.ansible.com/ansible-tower/2.3.0/html/administration/custom_inventory_script.html

I haven't tried it but I imagine you can run the "terraform-inventory" script under the "custom script" section.