54 lines
1.5 KiB
YAML
54 lines
1.5 KiB
YAML
---
|
|
- name: Create or verify Odoo LXD profile
|
|
lxd_profile:
|
|
name: odoo14
|
|
description: LXD profile for Odoo v14
|
|
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 | indent(6, false) }}
|
|
- encoding: gzip
|
|
owner: root:root
|
|
path: /root/.ssh/id_ed25519.pub
|
|
permissions: '0644'
|
|
content: !!binary |
|
|
{{ pubkey | indent(6, false) }}
|
|
- encoding: gzip
|
|
owner: root:root
|
|
path: /root/.ssh/known_hosts
|
|
permissions: '0644'
|
|
content: !!binary |
|
|
{{ knownhosts | indent(6, false) }}
|
|
- owner: root:root
|
|
path: /root/.vault_pass.txt
|
|
permissions: '0600'
|
|
content: !!binary |
|
|
{{ vaultpass | indent(6, false) }}
|
|
runcmd:
|
|
- pip3 install ansible
|
|
- [ ansible-pull,
|
|
-U, "ssh://git@gitea.agofer.net:22001/jegomez/ansible-role-odoo14.git",
|
|
--vault-password-file, /root/.vault_pass.txt ]
|
|
devices:
|
|
nat01:
|
|
nictype: bridged
|
|
parent: nat01
|
|
type: nic
|
|
root:
|
|
path: /
|
|
pool: default
|
|
type: disk
|
|
|