diff --git a/roles/lxc_guest/tasks/main.yaml b/roles/lxc_guest/tasks/main.yaml index 9913e24..7742f72 100644 --- a/roles/lxc_guest/tasks/main.yaml +++ b/roles/lxc_guest/tasks/main.yaml @@ -64,7 +64,7 @@ container_file_exists: name: "{{ vm_name }}" path: "/etc/ssh/ssh_host_ed25519_key-cert.pub" - register: host_certificate_exists + register: vm_ssh_certificate_exists - name: check if cert key exist shell: lxc-attach -n {{ vm_name }} --clear-env -e -- bash -c "ls /etc/ssh/ssh_host_ed25519_key-cert.pub"