Adds back the files to be written by cloud-init

This commit is contained in:
Jorge Enrique Gómez Gómez 2020-12-16 20:53:55 -05:00
parent bb207422fe
commit 86301a407a

View File

@ -15,10 +15,27 @@
write_files:
- encoding: gzip
owner: root:root
path: /root/test
permissions: '0644'
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,