https://github.com/dgapitts/vagrant-ansible-for-devops-3nodes
Following ansible-for-devops course use vagrant to spin up 3 nodes - 2app and 1db
https://github.com/dgapitts/vagrant-ansible-for-devops-3nodes
Last synced: 4 months ago
JSON representation
Following ansible-for-devops course use vagrant to spin up 3 nodes - 2app and 1db
- Host: GitHub
- URL: https://github.com/dgapitts/vagrant-ansible-for-devops-3nodes
- Owner: dgapitts
- Created: 2021-01-18T18:00:58.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-02-23T21:53:56.000Z (over 4 years ago)
- Last Synced: 2025-07-06T18:47:49.934Z (11 months ago)
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Summary
Following "Ansible 101 by Jeff Geerling" and pleased to have a 3 node cluser running with vagrant and ansible provisioning.
Had to tweak my inventory file
# Cannot handle SSH host authenticity prompts for multiple hosts
# https://stackoverflow.com/questions/23074412/how-to-set-host-key-checking-false-in-ansible-inventory-file
ansible_ssh_common_args='-o StrictHostKeyChecking=no'
## First run
~/projects/vagrant-ansible-for-devops-3nodes$ ansible -i inventory.ini multi -a "hostname"
192.168.60.4 | CHANGED | rc=0 >>
orc-app1.dev
192.168.60.6 | CHANGED | rc=0 >>
orc-db.dev
192.168.60.5 | CHANGED | rc=0 >>
orc-app2.dev
## Examples
* [Hello-Playbook-World - running on localhost1](docs/001-Hello-Playbook-World.md)
* [Hello-Playbook-World with hardcode `db` host](docs/002-Hello-Playbook-World-hardcode-db-host.md)