diff --git a/roles/lxchost/tasks/lxd_profile.yml b/roles/lxchost/tasks/lxd_profile.yml index c0a9210..bd58fe9 100644 --- a/roles/lxchost/tasks/lxd_profile.yml +++ b/roles/lxchost/tasks/lxd_profile.yml @@ -5,38 +5,38 @@ description: LXD profile for Odoo v14 config: user.vendor-data: | - #cloud-config - package_upgrade: true - packages: - - python3-pip - - python3-venv - users: - - name: root - ssh-import-id: gh:jorgeegomez - write_files: - - owner: root:root - path: /root/.vault_pass.txt - permissions: '0600' - content: '{{ vaultpass }}' - - encoding: gzip - owner: root:root - path: /root/.ssh/id_ed25519 - permissions: '0600' - content: !!binary | + #cloud-config + package_upgrade: true + packages: + - python3-pip + - python3-venv + users: + - name: root + ssh-import-id: gh:jorgeegomez + write_files: + - owner: root:root + path: /root/.vault_pass.txt + permissions: '0600' + content: '{{ vaultpass }}' + - 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 | + - 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 | + - encoding: gzip + owner: root:root + path: /root/.ssh/known_hosts + permissions: '0644' + content: !!binary | '{{ known_hosts | string | b64encode }}' - runcmd: + runcmd: - [ ansible-pull, -U, "ssh://git@gitea.agofer.net:22001/jegomez/ansible-role-odoo14-lxd.git" ] devices: nat01: