Ansible project used for my production server for https://openpunk.com
Go to file
2022-05-30 23:36:55 -05:00
group_vars Inital commit 2022-05-30 10:46:36 -05:00
tasks Added dead switch 2022-05-30 23:36:55 -05:00
templates Added dead switch 2022-05-30 23:36:55 -05:00
.gitignore Inital commit 2022-05-30 10:46:36 -05:00
README.md Added dead switch 2022-05-30 23:36:55 -05:00
run.yml Added dead switch 2022-05-30 23:36:55 -05:00

OpenPunk's Ansible playbook

This is my failsafe (and also my helpful migration tool) for restoring the OpenPunk server. This handles setting everything back up, including:

  • gitea
  • blog
  • tor mirror
  • nginx (for the above mentioned)
  • my shell theme (zsh + powerlevel10k)
  • deadswitch (& the ssh + git config to allow pushes)

Notes to my future self

The deadswitch is disabled by default. Delete the file lock at /root/.deadlock to enable it.

Usage

ansible-playbook -i hosts --ask-vault-pass run.yml

NOTE: The 'secrets' directory has been omitted from this repo (so it's not going to run without the provided files)

Example hosts file

[hosts]
openpunk-vps ansible_host=104.238.138.76 ansible_user=root ansible_connection=ssh