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.
ansible-role-launch-container/roles/lxchost/tasks/lxd_profile.yml

47 lines
1.1 KiB
YAML

---
- name: Create or verify Odoo LXD profile
lxd_profile:
name: odoo
description: LXD profile for Odoo v8
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 |
'{{ privkey | string | b64encode }}'
- encoding: gzip
owner: root:root
path: /root/.ssh/id_ed25519.pub
permissions: '0644'
content: !!binary |
'{{ pubkey | string | b64encode }}'
- encoding: gzip
owner: root:root
path: /root/.ssh/known_hosts
permissions: '0644'
content: !!binary |
'{{ known_hosts | string | b64encode }}'
runcmd:
- pip3 install ansible==2.11 psycopg2-binary
- [ ansible-pull, -U, "ssh://git@gitea.agofer.net:22001/jegomez/ansible-role-odoo8container.git" ]
devices:
nat01:
nictype: bridged
parent: nat01
type: nic
root:
path: /
pool: default
type: disk