Update README.md

This commit is contained in:
karsalan
2025-02-03 09:25:43 +01:00
parent 0836898fec
commit b6f7bf632d
3 changed files with 114 additions and 128 deletions

48
run_demo.md Normal file
View File

@@ -0,0 +1,48 @@
# demoAnsible
## Setup
- Install Virtualbox
- Install vagrant
- Install ansible
- Start the VMs using vagrant
```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)
```
## Demo 1
Run the playbook
```bash
ansible-playbook playbook.yml -i hosts
```
Try to access http://192.168.56.141/index.php
## Demo 2
- 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
```bash
ansible-playbook site.yml -i hosts
```
Try to access http://192.168.56.141/index.php