Add RDP for FreeBSD.

This commit is contained in:
Hyperling 2021-07-14 07:29:12 -05:00
parent cefa9f73ec
commit 3a90368883
3 changed files with 44 additions and 5 deletions

15
hosts
View File

@ -1,8 +1,9 @@
[everything]
;;;;;;; Available options - all require lowercase values ;;;;;;
;
; branch : Provide the Github branch that the machine should poll.
; Exampel: main, dev
;
[everything]
localhost
freeboy branch=dev
dell-laptop branch=dev
@ -11,19 +12,26 @@ my-parrotsec-dev-www branch=dev
[workstation]
;;;;;;; Available options - all require lowercase values ;;;;;;
;
; coding : Define for installation of code editors (VSCode, PyCharm, Android Studio)
;
; editing : Define for installation of Audio/Video editors (Shotcut, Audacity, OBS Stdio, GIMP)
;
; gaming : Define for installation of gaming software (Steam, Lutris)
;
; rdp : Define for installation of gaming software (Steam, Lutris)
; CURRENTLY FREEBSD-ONLY
;
; vnc : Define for installation of gaming software (Steam, Lutris)
; NOT IMPLEMENTED YET
;
dell-laptop coding=true editing=true
usb-workstation
lbry-server-1
lbry-server-2
lbry-server-3
aspire
freeboy
freeboy rdp=true
[mobile]
pinephone
@ -81,8 +89,9 @@ x570 amdgpu=true nanominer=true nanominer_gpu=eth nanominer_gpus=0 nanominer_gpu
; hugo : Set to anything to install HUGO static website generator.
; Example: true
;
; gitlab : Set to anything to install Gitlab project managemtn tool.
; gitlab : Set to anything to install Gitlab project management tool.
; Example: true
; NOT IMPLEMENTED YET
;
onlyoffice domain=hyperling.com onlyoffice=true
grafana domain=hyperling.com grafana=true influxdb1=true

View File

@ -72,10 +72,10 @@
- include: tasks/workstation/settings/nfs.yml
- include: tasks/workstation/settings/vnc.yml
when: vnc is defined
- include: tasks/workstation/settings/rdp.yml
when: rdp is defined
- include: tasks/workstation/settings/vnc.yml
when: vnc is defined

View File

@ -1,2 +1,32 @@
---
# Allow remote viewing via open/free RDP.
- name: Workstation | Settings | RDP | FreeBSD | Install
package:
name: xrdp
state: present
when: ansible_system == "FreeBSD"
- name: Workstation | Settings | RDP | FreeBSD | Enable
blockinfile:
path: "{{ rc_conf }}"
marker: "# {mark} MANAGED BY ANSIBLE | RDP Components"
block: |
xrdp_enable="YES"
xrdp_sesman_enable="YES"
state: present
create: yes
backup: yes
when: ansible_system == "FreeBSD"
#- name: Workstation | Settings | RDP | FreeBSD | Enable GNOME?
# lineinfile: search for gnome-session and uncomment it
# path: /usr/local/etc/xrdp/startwm.sh
# when: ansible_system == "FreeBSD"
#
#- name: Workstation | Settings | RDP | FreeBSD | Disable XTERM?
# lineinfile: search for gnome-session and uncomment it
# path: /usr/local/etc/xrdp/startwm.sh
# when: ansible_system == "FreeBSD"