scripts/ansible
Paul Walko 90aec2b881 misc updates 2023-09-07 14:19:40 -06:00
..
files misc updates 2023-09-07 14:19:40 -06: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 misc updates 2023-09-07 14:19:40 -06: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