Ansible role for use with ansible-pull to launch a new container and register its domain
This repository has been archived on 2021-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
2021-01-22 16:44:00 -05:00
roles [ADD] Uses a more standard Nginx site config file 2021-01-22 16:44:00 -05:00
hosts Try different location for python var in LXD 2020-09-30 00:13:23 -05:00
local.yml [DOC] Include list-hosts in command to be used 2020-09-30 01:18:46 -05:00
README.md [DOC] Include list-hosts in command to be used 2020-09-30 01:18:46 -05:00

Ansible role to launch a new container

To be used in the LXD host (currently servidora1e0.bogota.agofer), via ansible-pull.

ansible-pull \
  -U ssh://git@gitea.agofer.net:22001/jegomez/ansible-role-launch-container.git \
  -e nombre=<newodoocontainer> \
  --vault-password-file ~/.vault_pass.txt \
  -l localhost,nginx \
  -i hosts
  
  • Launches a new container called newodoocontainer.
  • Creates a DNS alias for externo.agofer.net called newodoocontainer.agofer.net.
  • Registers this container in the existing Nginx Proxy container.
  • Requests an SSL certificate to Let's Encrypt for the new domain, storing the certificates in the Nginx Proxy container.

The file ~/.vault_pass.txt contains the cleartext password to the vault file where the Dreamhost API key and the Gitea deploy keys are stored encrypted.