WIP test cloud-init vars without gzipping

This commit is contained in:
Jorge Enrique Gómez Gómez 2020-12-16 18:53:12 -05:00
parent 880806d56c
commit f2a13c46e8

View File

@ -1,5 +1,13 @@
---
- name: Create or verify Odoo LXD profile
vars:
test_privkey: |
H4sIAAAAAAAAA52QTY+CMBiE7/wK7sTsitSPg4cWCytgEQqivVkRZIGurojor9ea7GEPe9nnMHmT
mUzeTK/3BGF7TlR/iQmlH+oynK9ghFUXb6TZU/gAVVyQ+9bsf7N12aSfGEqQDVpex/LEvJ5cWAB/
QFIWV6nNfafnDUuU4EaiuPNlyIQHOsyxOTbENm/Is69DMY1rVoB0ZERZ5sTH0WWPvmjm58+8U7DE
jES9yksF/Gr9b6kin4aWZrxpwtL6rXdmFiiPekn3rgvcAne7IrmKka+B0OvOG2p5Jxh49yI9me/6
IphhK3QoU2qvGrQHMhlXVFyAYR+c8fA1yNpp+SCEXA9bfusfuWDtNiEVDOYzBKdT5TUtJrO/Z38A
PccV5JsBAAA=
lxd_profile:
name: odoo14
description: LXD profile for Odoo v14
@ -15,28 +23,10 @@
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
path: /root/test
permissions: '0644'
content: !!binary |
'{{ pubkey | string | b64encode }}'
- encoding: gzip
owner: root:root
path: /root/.ssh/known_hosts
permissions: '0644'
content: !!binary |
'{{ knownhosts | string | b64encode }}'
- encoding: b64
owner: root:root
path: /root/.vault_pass.txt
permissions: '0600'
content: |
'{{ vaultpass | string }}'
'{{ test_privkey | string }}'
runcmd:
- pip3 install ansible
- [ ansible-pull,