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,