scripts/ansible
Paul Walko e899c7b4d1 move cron 2023-10-30 08:16:56 -04:00
..
files remove smb 2023-10-13 15:29:56 -04:00
templates misc updates 2023-09-07 14:19:40 -06:00
README.md misc updates 2023-09-07 14:19:40 -06:00
handlers.yml add dnsmasq 2021-07-17 11:12:23 -04:00
hosts.cfg misc updates 2023-09-07 14:19:40 -06:00
main.yml move cron 2023-10-30 08:16:56 -04:00

README.md

Usage:

export GANDI_API_KEY=mykey
ansible-playbook main.yml -i hosts.cfg --extra-vars "gandi_api_key=$GANDI_API_KEY" --limit=cabinet

Additional variables:

  • gandi_api_key: gandi api key for dynamic dns (only for hosts with non-static IPs)
  • dma_auth: smtp password to be used by dma (for sending mail)

Assumes:

  • OS (Debian) has been installed and IPs have been configured in hosts.cfg
  • Host is already trusted via ssh and can be ssh'd into using keys
  • Passwordless sudo is enabled for the user ansible uses
  • ZFS and Docker already already configured on applicable hosts
  • Special mounts such as /media-vtluug already have their folder created.
  • Any additional users have been created