1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_rustdesk.git synced 2024-08-16 10:19:48 +02:00
ansible_role_rustdesk/tasks/summary.yml

28 lines
973 B
YAML
Raw Normal View History

2024-02-18 05:49:34 +01:00
---
- name: Make sure there is a key for rustdesk
become: true
2024-02-18 17:33:18 +01:00
when: rustdesk__require_key | bool
2024-02-18 05:49:34 +01:00
block:
- name: Get public key of rustdesk
ansible.builtin.slurp:
src: "{{ rustdesk__home }}/id_ed25519.pub"
register: _rustdesk_pubkey
rescue:
2024-02-18 16:13:48 +01:00
- 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"
2024-02-18 05:49:34 +01:00
- name: Get public key of rustdesk
ansible.builtin.slurp:
src: "{{ rustdesk__home }}/id_ed25519.pub"
register: _rustdesk_pubkey
2024-02-18 17:33:18 +01:00
- name: Show Rustdesk Login Info
2024-02-18 05:49:34 +01:00
ansible.builtin.debug:
2024-02-18 17:33:18 +01:00
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 }}