https://github.com/goffinet/ansible-nodes
ansible playbook to configure kvm nodes lab
https://github.com/goffinet/ansible-nodes
Last synced: 2 months ago
JSON representation
ansible playbook to configure kvm nodes lab
- Host: GitHub
- URL: https://github.com/goffinet/ansible-nodes
- Owner: goffinet
- Created: 2018-11-25T20:26:16.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-01T19:19:19.000Z (about 7 years ago)
- Last Synced: 2025-03-02T23:28:35.844Z (about 1 year ago)
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ansible-nodes
ansible playbooks to configure KVM Ubuntu nodes lab
## Usage
* Clone this repo and test the Ansible connectivity
```
git clone https://github.com/goffinet/ansible-nodes
cd ansible-nodes
ansible all -m ping
ansible-playbook -i hosts main.yml
```
## Prereqs
* Install virt-scripts and prepare your Host for KVM/libvirt
```
git clone https://github.com/goffinet/virt-scripts
sudo ~/virt-scripts/autoprep.sh
```
* Download the base image and put it in /var/lib/libvirt/images/.
```
curl -O https://s3.fr-par.scw.cloud/getimages/ubuntu1804.qcow2
sudo mv ubuntu1804.qcow2 /var/lib/libvirt/images/ubuntu1804.qcow2
```
* Create 5 Ubuntu nodes
```
for x in {1..5} ; do sudo ~/virt-scripts/define-guest-image.sh node$x ubuntu1804 ; done
```
## Enjoy with Ansible !