add rustdesk role
This commit is contained in:
25
roles/rustdesk/tasks/check-rustdesk-version.yml
Normal file
25
roles/rustdesk/tasks/check-rustdesk-version.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
|
||||
- name: "Check hbbr version"
|
||||
register: hbbr_output
|
||||
changed_when: false
|
||||
ansible.builtin.command:
|
||||
cmd: "/opt/rustdesk-server/amd64/hbbr --version"
|
||||
|
||||
- name: "Check if the version of hbbr is the expected one"
|
||||
ansible.builtin.assert:
|
||||
that: "hbbr_output.stdout == 'hbbr {{ rustdesk_server_version }}'"
|
||||
success_msg: "hbbr is installed and is the correct version"
|
||||
fail_msg: "hbbr is either not installed or does not match the target version"
|
||||
|
||||
- name: "Check hbbs version"
|
||||
register: hbbs_output
|
||||
changed_when: false
|
||||
ansible.builtin.command:
|
||||
cmd: "/opt/rustdesk-server/amd64/hbbs --version"
|
||||
|
||||
- name: "Check if the version of hbbs is the expected one"
|
||||
ansible.builtin.assert:
|
||||
that: "hbbs_output.stdout == 'hbbs {{ rustdesk_server_version }}'"
|
||||
success_msg: "hbbs is installed and is the correct version"
|
||||
fail_msg: "hbbs is either not installed or does not match the target version"
|
||||
Reference in New Issue
Block a user