Ansible role that LXC server will use to launch a new Odoo 14 container and register its domain in the existing Nginx container
Go to file
2020-12-15 22:50:17 -05:00
roles FIX try new way of including variables in role 2020-12-15 22:50:17 -05:00
hosts Initial version, based on Odoo8 scripts 2020-12-15 22:36:08 -05:00
local.yml WIP test first role 2020-12-15 22:39:44 -05:00
README.md Initial version, based on Odoo8 scripts 2020-12-15 22:36:08 -05:00

Ansible role to launch a new Odoo 14 LXD container

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

ansible-pull \
  -U ssh://git@gitea.agofer.net:22001/jegomez/ansible-role-odoo14-launch-container \
  -e nombre=<newodoocontainer> \
  --vault-password-file ~/.vault_pass.txt \
  -l localhost,nginx \
  -i hosts
  
  • Launches a new LXD container called newodoocontainer, that uses a LXD profile to download and setup Odoo v14.
  • 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.