Download and configure Odoo as a copy from current production database and code
Go to file
2022-02-08 19:46:00 +00:00
roles/odoo [FIX] New location for electronic invoice vendor modules 2022-02-08 19:46:00 +00:00
hosts Initial version copied from Odoo8 role 2020-12-16 14:24:52 -05:00
local.yml [ADD] Pings healthchecks server on start and completion 2021-10-28 18:34:04 -05:00
README.md [ADD] Pings healthchecks server on start and completion 2021-10-28 18:34:04 -05:00

Ansible role that configures Odoo 14 in a server or container

To be used with Ansible-pull, typically called from a LXD profile in this way:

config:
  user.vendor-data: |
    #cloud-config
    package_upgrade: true
    packages:
      - python3-pip
      - python3-venv
    users:
      - name: root
        ssh-import-id: gh:jorgeegomez
    write_files:
      - encoding: gzip
        owner: root:root
        path: /root/.ssh/id_ed25519
        permissions: '0600'
        content: !!binary |
          H4sICCW ... 🔒 gzipped and base64-encoded private key, registered as
                      deploy key in Gitea, in both the odoo14_running_code and
                      ansible-role-odoo14 repos.         ... AAA==
      - encoding: gzip
        owner: root:root
        path: /root/.ssh/id_ed25519.pub
        permissions: '0644'
        content: !!binary |
          H4sICCW ... 🔒 gzipped and base64-encoded corresponding public key ... AAA==
      - encoding: gzip
        owner: root:root
        path: /root/.ssh/known_hosts
        permissions: '0644'
        content: !!binary |
          H4sICPS ... 🔒 gzipped and base64-encoded host key for gitea ... AAA==
    runcmd:
      - [ ansible-pull, -U, "ssh://git@gitea.agofer.net:22001/jegomez/ansible-role-odoo14.git" ]    
description: LXD profile for Odoo 14

Healthchecks integration

The role pings our Healthchecks server, as proof of a successful database restore.