--- - name: Make sure there is a key for rustdesk become: true when: rustdesk__require_key | bool block: - name: Get public key of rustdesk ansible.builtin.slurp: src: "{{ rustdesk__home }}/id_ed25519.pub" register: _rustdesk_pubkey rescue: - name: Run systemd setup to initially start rustdesk service and generate pubkeys ansible.builtin.include_tasks: file: 'install_systemd.yml' when: ansible_service_mgr == "systemd" - name: Get public key of rustdesk ansible.builtin.slurp: src: "{{ rustdesk__home }}/id_ed25519.pub" register: _rustdesk_pubkey - name: Show Rustdesk Login Info ansible.builtin.debug: msg: | Rustdesk ID Server: {{ rustdesk__relay_server_domain }}:{{ rustdesk__signal_server_port }} Rustdesk Relay Server: {{ rustdesk__relay_server_domain }}:{{ rustdesk__relay_server_port }} No API Server. Key: {{ _rustdesk_pubkey.content | b64decode }}