From 86301a407a2814259ad1b0d0683f275b47d2f1df Mon Sep 17 00:00:00 2001 From: "Jorge E. Gomez" Date: Wed, 16 Dec 2020 20:53:55 -0500 Subject: [PATCH] Adds back the files to be written by cloud-init --- roles/lxchost/tasks/lxd_profile.yml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/roles/lxchost/tasks/lxd_profile.yml b/roles/lxchost/tasks/lxd_profile.yml index 90fc4c2..d98b2e0 100644 --- a/roles/lxchost/tasks/lxd_profile.yml +++ b/roles/lxchost/tasks/lxd_profile.yml @@ -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,