adc/ansible
josiah ece64af0ed Test mattermost.
- Add new DO records
- Create TF for provisioning mm virtual machine inside bikeshed
- write basic ansible play for deploying single node chat cluster.
2024-05-26 15:47:32 -05:00
..
group_vars/all Test mattermost. 2024-05-26 15:47:32 -05:00
host_vars/larva.home.jowj.net
inventory Test mattermost. 2024-05-26 15:47:32 -05:00
roles Test mattermost. 2024-05-26 15:47:32 -05:00
_deploy_abjure.yml Remove old home-services file, add new abjure deploy play. 2023-12-22 15:39:20 -06:00
_deploy_highsea.yml Rename deploy file to follow new standard. 2023-12-31 23:19:08 -06:00
_deploy_testchat.yml Test mattermost. 2024-05-26 15:47:32 -05:00
acme-all.yml
ansible.cfg
awfulAll.yml
halo.yml
open_the_vault.sh
readme.org
requirements.yml
tailscale.yml
vault_passphrase.gpg

setup from scratch:

install dependencies

ansible-galaxy collection install -r requirements.yml

run a play

ansible-playbook -i hosts.yml all.yml --ask-vault-pass --ask-become-pass

preparing open_the_vault

wg

clients

you probably want to deploy clients individually most of the time. to do that, provide a tag, like: ansible-playbook -i hosts.yml client_matrix.yml --ask-vault-pass --ask-become-pass --tags matrix_client

adding a client

  • generate a new public/private keypair
  • umask 077
  • wg genkey | tee privatekey | wg pubkey > publickey
  • add the pubkey to the groupvars/main.yml
  • add the privkey to the groupvars/vault.yml
  • add a task referencing the new client
  • add a template with the groupvars embedded.

instructions on specific roles

awfulAll

awfulAll is a single server that's a catch all for services that don't need a dedicated vm. ansible-playbook -i hosts.yml awfulAll.yml --tags awfulAll

mediaserver

ansible-playbook awfulAll.yml --tags mediaserver

certs/letsencrypt/acme stuff

ansible-playbook acme-all.yml -v

  • right now for bouncer, syno