WIP test cloud-init vars without gzipping
This commit is contained in:
parent
880806d56c
commit
f2a13c46e8
@ -1,5 +1,13 @@
|
|||||||
---
|
---
|
||||||
- name: Create or verify Odoo LXD profile
|
- 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:
|
lxd_profile:
|
||||||
name: odoo14
|
name: odoo14
|
||||||
description: LXD profile for Odoo v14
|
description: LXD profile for Odoo v14
|
||||||
@ -15,28 +23,10 @@
|
|||||||
write_files:
|
write_files:
|
||||||
- encoding: gzip
|
- encoding: gzip
|
||||||
owner: root:root
|
owner: root:root
|
||||||
path: /root/.ssh/id_ed25519
|
path: /root/test
|
||||||
permissions: '0600'
|
|
||||||
content: !!binary |
|
|
||||||
'{{ privkey | string | b64encode }}'
|
|
||||||
- encoding: gzip
|
|
||||||
owner: root:root
|
|
||||||
path: /root/.ssh/id_ed25519.pub
|
|
||||||
permissions: '0644'
|
permissions: '0644'
|
||||||
content: !!binary |
|
content: !!binary |
|
||||||
'{{ pubkey | string | b64encode }}'
|
'{{ test_privkey | string }}'
|
||||||
- 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 }}'
|
|
||||||
runcmd:
|
runcmd:
|
||||||
- pip3 install ansible
|
- pip3 install ansible
|
||||||
- [ ansible-pull,
|
- [ ansible-pull,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user