diff options
author | Romain Gonçalves <me@rgoncalves.se> | 2021-12-08 19:15:49 +0000 |
---|---|---|
committer | Romain Gonçalves <me@rgoncalves.se> | 2021-12-09 16:43:04 +0000 |
commit | d955edab044335b4b599963df078a4f85d7faa7b (patch) | |
tree | 7f8a1937043f9ee628584975ac296a5764e8b29f /roles/vmm/defaults | |
parent | f86e57ffc10bc85168eff90269824d1462c22187 (diff) | |
download | rules-d955edab044335b4b599963df078a4f85d7faa7b.tar.gz |
roles/vmm: Use lookup for public key and passwords
Diffstat (limited to 'roles/vmm/defaults')
-rw-r--r-- | roles/vmm/defaults/main.yml | 4 |
1 files changed, 2 insertions, 2 deletions
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 |