From d955edab044335b4b599963df078a4f85d7faa7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Wed, 8 Dec 2021 19:15:49 +0000 Subject: roles/vmm: Use lookup for public key and passwords --- roles/vmm/defaults/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'roles/vmm/defaults/main.yml') diff --git a/roles/vmm/defaults/main.yml b/roles/vmm/defaults/main.yml index 2e2ceb1..e91c7a1 100644 --- a/roles/vmm/defaults/main.yml +++ b/roles/vmm/defaults/main.yml @@ -5,10 +5,10 @@ vmm_disk_dir: /data/vmm/disk.d vmm_disk_format: qcow2 vmm_configuration_file: /etc/vm.conf -vmm_default_password: a vmm_default_timezone: Europe/Stockholm vmm_default_fallback_http: true -vmm_default_ssh_key: a +vmm_default_password: "{{ lookup('password', lookup('env', 'PWD') ~ '/files/secrets/hosts/default/root-password') }}" +vmm_default_ssh_key: "{{ lookup('file', lookup('env', 'PWD') ~ '/files/keys/rgoncalves.pub') }}" vmm_image_openbsd_kernel_prefix: /bsd.vm -- cgit v1.2.3