Added variant for Vagrant
This commit is contained in:
23
run_demo.md
23
run_demo.md
@@ -2,15 +2,18 @@
|
||||
|
||||
## Setup
|
||||
|
||||
- Install Virtualbox
|
||||
- Install vagrant
|
||||
- Install ansible
|
||||
- Start the VMs using vagrant
|
||||
- Install Virtualbox (if libvirt provider is not used)
|
||||
|
||||
> Start the VMs using vagrant
|
||||
|
||||
```bash
|
||||
git clone https://github.com/barais/demoAnsible
|
||||
cd vagrant
|
||||
# Choose between libvirt and virtualbox depending on your provider
|
||||
cd vagrant/libvirt
|
||||
cd vagrant/virtualbox
|
||||
|
||||
# Start the VMs
|
||||
vagant up
|
||||
# Check that the VM are up
|
||||
# Check that you can login using ssh (ssh vagrant@192.168.56.141 # password: vagrant)
|
||||
@@ -18,7 +21,7 @@ vagant up
|
||||
|
||||
## Demo 1
|
||||
|
||||
Run the playbook
|
||||
- Run the playbook (verify that playbook parameters match your VMs)
|
||||
|
||||
```bash
|
||||
ansible-playbook playbook.yml -i hosts
|
||||
@@ -31,15 +34,7 @@ Try to access http://192.168.56.141/index.php
|
||||
- Kill the VMs and remove them.
|
||||
- Use vagrant to recreate them from scratch
|
||||
|
||||
```bash
|
||||
git clone https://github.com/barais/demoAnsible
|
||||
cd vagrant
|
||||
vagant up
|
||||
# Check that the VM are up
|
||||
# Check that you can login using ssh (ssh vagrant@192.168.56.141 # password: vagrant)
|
||||
```
|
||||
|
||||
Run the playbook
|
||||
- Run the playbook
|
||||
|
||||
```bash
|
||||
ansible-playbook site.yml -i hosts
|
||||
|
||||
Reference in New Issue
Block a user