Add RDP for FreeBSD.
This commit is contained in:
		
							
								
								
									
										15
									
								
								hosts
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								hosts
									
									
									
									
									
								
							@@ -1,8 +1,9 @@
 | 
				
			|||||||
 | 
					[everything]
 | 
				
			||||||
;;;;;;; Available options - all require lowercase values ;;;;;;
 | 
					;;;;;;; Available options - all require lowercase values ;;;;;;
 | 
				
			||||||
 | 
					;
 | 
				
			||||||
; branch : Provide the Github branch that the machine should poll.
 | 
					; branch : Provide the Github branch that the machine should poll.
 | 
				
			||||||
;            Exampel: main, dev
 | 
					;            Exampel: main, dev
 | 
				
			||||||
;
 | 
					;
 | 
				
			||||||
[everything]
 | 
					 | 
				
			||||||
localhost
 | 
					localhost
 | 
				
			||||||
freeboy              branch=dev
 | 
					freeboy              branch=dev
 | 
				
			||||||
dell-laptop          branch=dev
 | 
					dell-laptop          branch=dev
 | 
				
			||||||
@@ -11,19 +12,26 @@ my-parrotsec-dev-www branch=dev
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
[workstation]
 | 
					[workstation]
 | 
				
			||||||
;;;;;;; Available options - all require lowercase values ;;;;;;
 | 
					;;;;;;; Available options - all require lowercase values ;;;;;;
 | 
				
			||||||
 | 
					;
 | 
				
			||||||
;  coding : Define for installation of code editors (VSCode, PyCharm, Android Studio)
 | 
					;  coding : Define for installation of code editors (VSCode, PyCharm, Android Studio)
 | 
				
			||||||
;
 | 
					;
 | 
				
			||||||
; editing : Define for installation of Audio/Video editors (Shotcut, Audacity, OBS Stdio, GIMP)
 | 
					; editing : Define for installation of Audio/Video editors (Shotcut, Audacity, OBS Stdio, GIMP)
 | 
				
			||||||
;
 | 
					;
 | 
				
			||||||
;  gaming : Define for installation of gaming software (Steam, Lutris)
 | 
					;  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
 | 
					dell-laptop coding=true editing=true
 | 
				
			||||||
usb-workstation
 | 
					usb-workstation
 | 
				
			||||||
lbry-server-1
 | 
					lbry-server-1
 | 
				
			||||||
lbry-server-2
 | 
					lbry-server-2
 | 
				
			||||||
lbry-server-3
 | 
					lbry-server-3
 | 
				
			||||||
aspire
 | 
					aspire
 | 
				
			||||||
freeboy
 | 
					freeboy rdp=true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[mobile]
 | 
					[mobile]
 | 
				
			||||||
pinephone
 | 
					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.
 | 
					;       hugo : Set to anything to install HUGO static website generator.
 | 
				
			||||||
;                Example: true
 | 
					;                Example: true
 | 
				
			||||||
;
 | 
					;
 | 
				
			||||||
;     gitlab : Set to anything to install Gitlab project managemtn tool.
 | 
					;     gitlab : Set to anything to install Gitlab project management tool.
 | 
				
			||||||
;                Example: true
 | 
					;                Example: true
 | 
				
			||||||
 | 
					;                NOT IMPLEMENTED YET
 | 
				
			||||||
;
 | 
					;
 | 
				
			||||||
onlyoffice domain=hyperling.com onlyoffice=true
 | 
					onlyoffice domain=hyperling.com onlyoffice=true
 | 
				
			||||||
grafana domain=hyperling.com grafana=true influxdb1=true
 | 
					grafana domain=hyperling.com grafana=true influxdb1=true
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -72,10 +72,10 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    - include: tasks/workstation/settings/nfs.yml
 | 
					    - include: tasks/workstation/settings/nfs.yml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    - include: tasks/workstation/settings/vnc.yml
 | 
					 | 
				
			||||||
      when: vnc is defined
 | 
					 | 
				
			||||||
    - include: tasks/workstation/settings/rdp.yml
 | 
					    - include: tasks/workstation/settings/rdp.yml
 | 
				
			||||||
      when: rdp is defined
 | 
					      when: rdp is defined
 | 
				
			||||||
 | 
					    - include: tasks/workstation/settings/vnc.yml
 | 
				
			||||||
 | 
					      when: vnc is defined
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,2 +1,32 @@
 | 
				
			|||||||
---
 | 
					---
 | 
				
			||||||
# Allow remote viewing via open/free RDP.
 | 
					# 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"
 | 
				
			||||||
		Reference in New Issue
	
	Block a user