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

Ansible feature request: Populate ansible.inventory_file with new IP address #1664

Closed
rdickert opened this issue Apr 26, 2013 · 7 comments
Closed

Comments

@rdickert
Copy link

Hi, I love the new Ansible integration - this is the first time I've felt like it was easy enough to get a small bit of devops going, and it's really great.

One thing I'd love to see is a way to make new IP addresses available to Ansible so that automated provisioning can proceed. I'm developing small sites which deploy to either virtualbox or this digital_ocean provider. Because Ansible requires your IP host to be in the ansible_hosts file, all new hosts require an extra step of editing that file. For work on virtualbox, I can anticipate what that will be (127.0.0.1:2222), but on digital ocean, a new IP address is returned at runtime. If Vagrant could handle that step, I'd have an end-to-end process that I could share with other devs who like this approach. Right now, I don't see a way to make this work when you first provision. Of course, once I manually add the IP to my ansible_hosts, vagrant provision is working fine.

Thanks for your consideration, and thanks for Vagrant!

@mitchellh
Copy link
Contributor

/cc @commandtab

@command-tab
Copy link
Contributor

It's in the works, though it seems it will have to be on a per-VM basis. Multi-VM inventory (all in one file at run time, with ansible-playbook being called only once) will take a lot more work on the Vagrant side.

@rdickert
Copy link
Author

Cool. A per-vm basis solution is all I need right now. I think people will get a lot of use out of that.

@bwghughes
Copy link

Hi @commandtab Any news on this - we're just doing some automated provisionsing on digitalocean and have hit the same skids - its hackable - but would rather it was part of the library.

@command-tab
Copy link
Contributor

#1907 adds support for this :)

@rdickert
Copy link
Author

rdickert commented Jul 8, 2013

Awesome! Thanks!

@mitchellh
Copy link
Contributor

Fixed by #1907

@ghost ghost locked and limited conversation to collaborators Apr 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants