Set up an Ubuntu 18.04 LXC/LXD container to run Odoo v8 using Ansible-pull
This repository has been archived on 2020-10-27. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
2020-09-24 04:03:32 -05:00
roles/odoo Add pg_config to allow psycopg2 build from source 2020-09-24 04:03:32 -05:00
hosts Basic package installation 2020-09-23 14:02:37 -05:00
local.yml [FIX] file name modified to match expected default 2020-09-23 14:37:57 -05:00
README.md [DOC] Adds sample for LXD profile 2020-09-23 17:51:03 -05:00

Ansible role for Odoo v8 container setup

To be used with a LXD profile such as:

config:
  user.vendor-data: |
    #cloud-config
    package_upgrade: true
    packages:
      - python3-pip
    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 odoo_running_code and
                      ansible-role-odoo8container 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:
      - pip3 install ansible psycopg2
      - [ ansible-pull, -U, "ssh://git@gitea.agofer.net:22001/jegomez/ansible-role-odoo8container.git" ]    
description: LXD profile for Odoo v8