diff --git a/platform/proxmox/ansible/playbooks/rustdesk-k3s.yml b/platform/proxmox/ansible/playbooks/rustdesk-k3s.yml index 61242d0..e1cf815 100644 --- a/platform/proxmox/ansible/playbooks/rustdesk-k3s.yml +++ b/platform/proxmox/ansible/playbooks/rustdesk-k3s.yml @@ -52,10 +52,10 @@ ansible.builtin.command: kubectl -n rustdesk rollout status deployment/rustdesk --timeout=300s changed_when: false - - name: Public Key im Cluster entspricht der Datei + - name: Public Key im Cluster entspricht der Datei (Image hat keine Shell, daher über das Secret) ansible.builtin.shell: > set -o pipefail; - kubectl -n rustdesk exec deploy/rustdesk -c hbbs -- cat /root/id_ed25519.pub | tr -d '\n' | cmp - <(tr -d '\n' < {{ key_dir }}/id_ed25519.pub) + kubectl -n rustdesk get secret rustdesk-keys -o go-template='{{ "{{" }}index .data "id_ed25519.pub"{{ "}}" }}' | base64 -d | cmp - {{ key_dir }}/id_ed25519.pub args: {executable: /bin/bash} changed_when: false