Simple helper to use ansible with vagrant
Project description
Tired of the rather limited vagrant provision with the ansible provider? Tired of keeping your hosts file up to date? ansible-vagrant to the rescue!
Usage
$ pip install ansible-vagrant $ cd /path/to/project/with/a/vagrantfile $ ansible-vagrant-update-hosts $ cat hosts vagrant ansible_ssh_host=127.0.0.1 ansible_ssh_port=2222 ansible_ssh_use... $ ansible-vagrant all -m ping # Same as: ansible-vagrant-update-hosts && ansible all -m ping $ ansible-playbook-vagrant playbook.yml # Same as: ansible-vagrant-update-hosts && ansible-playbook playbook.yml
Note that both ansible-vagrant and ansible-playbook-vagrant use ansible’s --limit=HOSTNAME argument to only work on the vagrant box.
Shortcuts
ansiblev for ansible-vagrant
ansible-playbookv for ansible-playbook-vagrant
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ansible-vagrant-1.1.1.tar.gz
(1.8 kB
view hashes)