Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/samnoon1971/vagrant-playground
Vagrantfiles for experimentation
https://github.com/samnoon1971/vagrant-playground
ansible docker ruby vagrant
Last synced: 2 days ago
JSON representation
Vagrantfiles for experimentation
- Host: GitHub
- URL: https://github.com/samnoon1971/vagrant-playground
- Owner: samnoon1971
- License: gpl-3.0
- Created: 2023-07-09T16:01:16.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-07-25T16:53:05.000Z (over 1 year ago)
- Last Synced: 2024-11-21T07:17:47.761Z (2 months ago)
- Topics: ansible, docker, ruby, vagrant
- Language: Jinja
- Homepage:
- Size: 33.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Vagrant-Playground
Vagrantfiles for experimentation## Cloning the repository
```
git clone https://github.com/samnoon1971/Vagrant-Playground.git
```## Environment Setup
Note: You must have Virtualbox installed on your machine.
To provision VirtualBox VMs using Vagrant:
```bash
vagrant up
```To add `ssh` configs of virtual machines:
```bash
vagrant ssh-config >> ~/.ssh/known_hosts
```To shutdown virtual machines using Vagrant:
```bash
vagrant halt
```
To build custom Ansible docker image:```bash
docker build -t abrar/ansible:1.0.0 .
```To run Ansible Configurations for LAMP server on Ubuntu VMs:
```bash
docker run --rm -v "$(pwd)":/ansible -w /ansible abrar/ansible:1.0.0 ansible-playbook -i provision-6-ubuntu-vms/lamp_simple/hosts provision-6-ubuntu-vms/lamp_simple/site.yml
```