{"id":15286312,"url":"https://github.com/michaelcontento/ansible-vagrant","last_synced_at":"2025-10-07T01:30:37.275Z","repository":{"id":16466556,"uuid":"19218647","full_name":"michaelcontento/ansible-vagrant","owner":"michaelcontento","description":"Simple helper to use ansible with vagrant","archived":true,"fork":false,"pushed_at":"2014-12-30T10:14:30.000Z","size":230,"stargazers_count":14,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-16T00:34:59.943Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pypi.python.org/pypi/ansible-vagrant","language":"Python","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/michaelcontento.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-27T21:44:05.000Z","updated_at":"2023-01-28T19:35:31.000Z","dependencies_parsed_at":"2022-09-13T08:12:06.632Z","dependency_job_id":null,"html_url":"https://github.com/michaelcontento/ansible-vagrant","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelcontento%2Fansible-vagrant","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelcontento%2Fansible-vagrant/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelcontento%2Fansible-vagrant/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelcontento%2Fansible-vagrant/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michaelcontento","download_url":"https://codeload.github.com/michaelcontento/ansible-vagrant/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235569498,"owners_count":19011184,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-09-30T15:12:50.354Z","updated_at":"2025-10-07T01:30:31.991Z","avatar_url":"https://github.com/michaelcontento.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [ansible-vagrant][]\n\nTired of the rather limited `vagrant provision` with the [ansible][] provider?\nTired of keeping your `hosts` file up to date? [ansible-vagrant][] to the rescue!\n\n## Usage\n\n    $ pip install ansible-vagrant\n    $ cd /path/to/project/with/a/vagrantfile\n\n    $ ansible-vagrant-update-hosts\n    $ cat hosts_vagrant\n    [vagrant]\n    vagrant  ansible_ssh_host=127.0.0.1  ansible_ssh_port=2222  ansible_ssh_use...\n\n    $ ansible-vagrant all -m ping\n    # Same as: ansible-vagrant-update-hosts \\\n    #          \u0026\u0026 ansible all --inventory=./hosts_vagrant -m ping\n\n    $ ansible-playbook-vagrant playbook.yml\n    # Same as: ansible-vagrant-update-hosts \\\n    #          \u0026\u0026 ansible-playbook --extra-vars=\"vagrant_host=true\" \\\n    #                              --inventory=./hosts_vagrant playbook.yml\n\n## Notes\n\n- All `*-vagrant` commands use `ANSIBLE_HOST_KEY_CHECKING=False` to prevent\n  errors with `vagrant destroy \u0026\u0026 vagrant up`\n- It's a good idea to put `hosts_vagrant` under `.gitignore`\n- `ansible-playbook-vagrant` adds a global variable named `vagrant`\n- Use `when: vagrant_host is (not) defined` to run stuff based on the current\n  environment\n\n## Shortcuts\n\n* `ansiblev` for `ansible-vagrant`\n* `ansible-playbookv` for `ansible-playbook-vagrant`\n\n  [ansible]: https://github.com/ansible/ansible\n  [ansible-vagrant]: https://github.com/michaelcontento/ansible-vagrant\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelcontento%2Fansible-vagrant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichaelcontento%2Fansible-vagrant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelcontento%2Fansible-vagrant/lists"}