Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jovanyaldair/vagrant-sh-ansible
https://github.com/jovanyaldair/vagrant-sh-ansible
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/jovanyaldair/vagrant-sh-ansible
- Owner: JovanyAldair
- Created: 2023-08-12T22:29:13.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-12T22:41:17.000Z (over 1 year ago)
- Last Synced: 2023-08-12T23:26:35.729Z (over 1 year ago)
- Language: Ruby
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Provisioning linux machines
## Introduction
This repo. contains vagrant labs of ansible.
## Lab_01
The vagrant will execute the Vagrantfile in this directory, and will create three machine with ubuntu/lunar image:
> - Master
> - Slave01
> - Slave02The Master is the main machine and where ansible will be installed by the scipt "provision-master.sh"
On line:
`master.vm.provision "shell", path: "provision-master.sh"`
The Slaves will be provisioned by local ansible, where he will be install:
* NGINX web server
On block:
`slave01.vm.provision "ansible_local" do |ansible|
ansible.playbook = "playbook.yml"
end
`
And on block:`slave02.vm.provision "ansible_local" do |ansible|
ansible.playbook = "playbook.yml"
end
`
## UsageTo setup this VM, execute:
`vagrant up`
To access the VM, execute:
`vagrant ssh`
To destroy the VM, execute:
`vagrant destroy -f`