playbook-tttls1.3-testserver

Actions Status

Set up python

$ source /path/to/virtualenv/bin/activate

$ pip install -r requirements.txt

Deploy

dev

$ docker image build --no-cache . -t playbook-tttls1.3-testserver/dev

$ docker run --privileged -d -p 4433:443 --name dev playbook-tttls1.3-testserver/dev /sbin/init

$ cd playbook

$ ansible-playbook -i dev private_certificate.yml https.yml

Check https://localhost:4433

$ docker ps -ql | xargs docker stop

prod

$ python gen_startup.py --user $USER --id_rsa_pub="`cat ~/.ssh/id_rsa.pub`" | pbcopy

Paste startup-script to settings.

$ cd playbook

$ ansible-playbook --ask-vault-pass -i prod --user $USER certbot.yml https.yml sshd_config.yml paranoids.yml

Check https://thekuwayama.net