{"id":18743328,"url":"https://github.com/rimiti/ansible-debian-vagrant","last_synced_at":"2026-04-15T15:38:57.883Z","repository":{"id":89492857,"uuid":"130882285","full_name":"rimiti/ansible-debian-vagrant","owner":"rimiti","description":"Example to deploy an Ansible playbook to a Debian Vagrant VM.","archived":false,"fork":false,"pushed_at":"2018-04-25T09:36:13.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-28T19:42:49.409Z","etag":null,"topics":["ansible","debian","deploy","example","vagrant"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rimiti.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-24T16:18:07.000Z","updated_at":"2018-10-22T14:42:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"50fca9bc-278a-4a31-b6d9-459451fb22f0","html_url":"https://github.com/rimiti/ansible-debian-vagrant","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rimiti%2Fansible-debian-vagrant","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rimiti%2Fansible-debian-vagrant/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rimiti%2Fansible-debian-vagrant/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rimiti%2Fansible-debian-vagrant/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rimiti","download_url":"https://codeload.github.com/rimiti/ansible-debian-vagrant/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239627153,"owners_count":19670843,"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":["ansible","debian","deploy","example","vagrant"],"created_at":"2024-11-07T16:11:02.477Z","updated_at":"2025-11-21T16:30:14.998Z","avatar_url":"https://github.com/rimiti.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# ansible-debian-vagrant\n\n## Description\n\nThis project provide a Debian Stretch (9) virtual machine to demonstrate how to execute a Ansible playbook. \nThis repository can be useful if you want to try your playbook in your local machine.  \n\n\n## Pre-requirements\n\n* [Install Vagrant](http://www.vagrantup.com)\n* [Install Ansible](https://www.ansible.com)\n\n## Summary\n\n* [Start VM](#vagrantUp)\n* [Stop VM](#vagrantStop)\n* [Destroy VM](#vagrantDestroy)\n* [Execute Ansible playbook](#executeAnsiblePlaybook)\n* [SSH VM](#sshVagrant)\n\n\n## Commands\n\n\u003ca name=\"vagrantUp\"/\u003e\n\n### Start VM\n\nStart virtual machine.\n\n__Arguments__\n\n```bash\n$ vagrant up    \n```\n\n---------------------------------------\n\n### Stop VM\n\nStop virtual machine.\n\n__Arguments__\n\n```bash\n$ vagrant halt    \n```\n\n---------------------------------------\n\n\u003ca name=\"vagrantDestroy\"/\u003e\n\n### Destroy VM\n\nDestroy virtual machine.\n\n__Arguments__\n\n```bash\n$ vagrant destroy    \n```\n\n---------------------------------------\n\n\u003ca name=\"executeAnsiblePlaybook\"/\u003e\n\n### Execute Ansible playbook\n\nExecute Ansible playbook in verbose mode.\n\n__Arguments__\n\n```bash\n$ ansible-playbook  -i environment/hosts-production --vault-password-file .production playbook.yml --private-key ~/repositories/ansible-debian-vagrant/.vagrant/machines/bart/virtualbox/private_key -vvv   \n```\n\n---------------------------------------\n\n\u003ca name=\"sshVagrant\"/\u003e\n\n### Connect to VM from SSH\n\nThere are two ways to connect you to your VM.\n\n__Arguments__\n\n```bash\n# From Vagrant command\n$ vagrant ssh   \n\n# From SSH command\n$ ssh vagrant@127.0.0.1 -p 2222 -i ~/repositories/ansible-debian-vagrant/.vagrant/machines/bart/virtualbox/private_key\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frimiti%2Fansible-debian-vagrant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frimiti%2Fansible-debian-vagrant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frimiti%2Fansible-debian-vagrant/lists"}