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

Support multiple host names #8

Merged
merged 2 commits into from
Jan 29, 2013
Merged

Support multiple host names #8

merged 2 commits into from
Jan 29, 2013

Conversation

baalexander
Copy link
Contributor

Some of my playbooks belong to different ansible hosts and I would like to install them all using vagrant-ansible.

This pull request lets you specify ansible.hosts = ["host1", "host2"] in the Vagrantfile, which generates an inventory file looking something like:

[host1]
localhost:22

[host2]
locahost:22

Single host syntax (ansible.hosts = "host1") is still supported.

I rarely write Ruby code, so please let me know if you need anything changed.

Create an inventory file with multiple host names, if specified.
@steverice
Copy link

I've been using this pull request without issue. The syntax is exactly what I'd expect and, being new to Vagrant and Ansible, was surprised it's not built in.

dsander added a commit that referenced this pull request Jan 29, 2013
@dsander dsander merged commit ca228b2 into dsander:master Jan 29, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants