Automating my cloud server.
Ansible keeps changing things. It needs to be managed:
$ virtualenv -p /usr/bin/python3.11 env
$ source env/bin/activate
$ pip install -r requirements.txt
$ ansible -i inventory all -m ping
To set up a fresh server, create the user and set up sshd:
$ ansible-playbook -i inventory -l ulmo playbook-init.yml
Then run the rest of the setup:
$ ansible-playbook -i inventory -l ulmo -K --vault-id .vault_pass playbook.yml
$ echo "password" > .vault_pass # not actual password :)
$ ansible-vault edit --vault-id .vault_pass vars/vault.yml
$ ansible-playbook -i inventory -l ulmo -K --vault-id .vault_pass playbooks/sites/org.tasuki.gallery.yml
Afaics right now, the following need manual setup:
- gallery.tasuki.org: all teh photo files
- tmp.tasuki.org: all teh random files
- domains.tasuki: the
listed.json
$ sudo apt install virtualbox vagrant
$ vagrant up
$ vagrant provision
$ ansible-playbook -i inventory -l dev --vault-id .vault_pass playbook.yml
- Put something along the lines of
127.0.0.1 tasuki.org
into/etc/hosts
. - Visit something like http://tasuki.org:1080/ or https://tasuki.org:1443/