adc/ansible
2020-11-13 22:53:03 -06:00
..
group_vars/all Add several roles; restructure group vars; restructure inventory. 2020-11-10 23:22:38 -06:00
host_vars/larva.home.jowj.net Add several roles; restructure group vars; restructure inventory. 2020-11-10 23:22:38 -06:00
inventory Add several roles; restructure group vars; restructure inventory. 2020-11-10 23:22:38 -06:00
roles Update base deploy to incluyde syncthing. 2020-11-13 22:53:03 -06:00
acme-all.yml Add several roles; restructure group vars; restructure inventory. 2020-11-10 23:22:38 -06:00
all.yml Final tweaks for working deploy. 2020-05-19 23:18:53 -05:00
ansible.cfg Add several roles; restructure group vars; restructure inventory. 2020-11-10 23:22:38 -06:00
awfulAll.yml Add freshrss, update readme. 2020-10-11 18:22:53 -05:00
clients.yml
cloud_wg.yml
open_the_vault.sh
readme.org Add several roles; restructure group vars; restructure inventory. 2020-11-10 23:22:38 -06:00
requirements.yml Add several roles; restructure group vars; restructure inventory. 2020-11-10 23:22:38 -06:00
vault_passphrase.gpg Prep for lil' lady additions to fleet. 2020-10-10 19:00:19 -05:00

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 ~