2014-08-25 10:37:52 +02:00
|
|
|
Playbook for base and initial configuration of web server hosting my personal websites.
|
2014-08-16 23:35:57 +02:00
|
|
|
|
|
|
|
### To use
|
|
|
|
Create a new Ubuntu 14.04 host, add a user account, copy your SSH public key, then execute:
|
|
|
|
|
2014-08-25 13:49:53 +02:00
|
|
|
ansible-playbook site.yml -i hosts --limit=web01 -K
|
2014-08-25 10:37:52 +02:00
|
|
|
|
|
|
|
### Testing
|
|
|
|
For testing, use a VM, ie with KVM and libvirt:
|
|
|
|
|
|
|
|
```console
|
|
|
|
virt-install -n web01 -r 1024 --vcpus 2 -l http://ubuntu.mirror.ac.ke/ubuntu/dists/trusty/main/installer-amd64/ --os-type=linux --os-variant=ubuntusaucy --disk /home/aorth/software/vms/web01.qcow2,device=disk,bus=virtio,format=qcow2,size=40 --vnc --cpuset=1,2 -x "auto=true priority=critical url=http://blah.com/~aorth/preseed/public/ubuntu-14.04.cfg"
|
|
|
|
```
|