Added Terraform/Ansible configuration to include RustDesk deployment
This commit is contained in:
@@ -39,6 +39,10 @@ fw_allowed_ports:
|
||||
- { rule: "allow", port: "80", proto: "tcp" }
|
||||
- { rule: "allow", port: "443", proto: "tcp" }
|
||||
- { rule: "allow", port: "22", proto: "tcp" }
|
||||
- { rule: "allow", port: "21115", proto: "tcp" }
|
||||
- { rule: "allow", port: "21116", proto: "tcp" }
|
||||
- { rule: "allow", port: "21116", proto: "udp" }
|
||||
- { rule: "allow", port: "21117", proto: "tcp" }
|
||||
- { rule: "allow", port: "16443", proto: "tcp", from: "10.1.0.0/16" }
|
||||
- { rule: "allow", port: "10254", proto: "tcp", from: "10.1.0.0/16" }
|
||||
- { rule: "allow", port: "10254", proto: "tcp", from: "147.78.131.194" }
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
---
|
||||
- name: RustDesk Playbook (K8s)
|
||||
hosts: rustdesk
|
||||
gather_facts: true
|
||||
|
||||
# Specific tasks for this playbook
|
||||
tasks:
|
||||
- name: Set required facts
|
||||
ansible.builtin.set_fact:
|
||||
rustdesk_home: "{{ persistent_data | default('/var/lib') }}/rustdesk"
|
||||
rustdesk_user_id: 1000
|
||||
rustdesk_group_id: 1000
|
||||
tags: always
|
||||
|
||||
- name: Create required rustdesk data folder
|
||||
become: true
|
||||
ansible.builtin.file:
|
||||
state: directory
|
||||
path: "{{ item }}"
|
||||
mode: "0750"
|
||||
owner: "{{ rustdesk_user_id }}"
|
||||
group: "{{ rustdesk_group_id }}"
|
||||
with_items:
|
||||
- "{{ rustdesk_home }}"
|
||||
tags:
|
||||
- tasks
|
||||
- tasks::folders
|
||||
Reference in New Issue
Block a user