Adding remote control to each client.
This commit is contained in:
parent
205c578093
commit
4b0f230db9
@ -9,6 +9,7 @@
|
||||
- { role: networkpackagemanager, when: '(ansible_local.domain.disable_npm is not defined or ansible_local.domain.disable_npm|bool == False) and ansible_local.checksum.needs_pkg_run|bool' }
|
||||
- { role: init, when: 'ansible_local.checksum.needs_repo_run | bool' }
|
||||
- { role: custom, when: 'ansible_local.checksum.needs_repo_run | bool' }
|
||||
- { role: remote-control, when: 'ansible_local.checksum.needs_repo_run | bool' }
|
||||
- { role: domain, when: 'ansible_local.checksum.needs_repo_run | bool' }
|
||||
environment:
|
||||
DEBIAN_FRONTEND: noninteractive
|
||||
|
7
roles/remote-control/files/60-vnc.conf
Normal file
7
roles/remote-control/files/60-vnc.conf
Normal file
@ -0,0 +1,7 @@
|
||||
[VNCServer]
|
||||
enabled=true
|
||||
command=/usr/bin/Xvnc -rfbauth /etc/vncpasswd
|
||||
port=9500
|
||||
width=1280
|
||||
height=1024
|
||||
depth=24
|
1
roles/remote-control/files/vncpasswd
Normal file
1
roles/remote-control/files/vncpasswd
Normal file
@ -0,0 +1 @@
|
||||
~BワメムGエ
|
29
roles/remote-control/tasks/main.yml
Normal file
29
roles/remote-control/tasks/main.yml
Normal file
@ -0,0 +1,29 @@
|
||||
---
|
||||
# Installing a VNC Server for remote monitoring.
|
||||
|
||||
- name: Install vnc server
|
||||
apt:
|
||||
name: tightvncserver
|
||||
state: present
|
||||
become: yes
|
||||
environment:
|
||||
DEBIAN_FRONTEND: noninteractive
|
||||
|
||||
- name: Configuring a password for tightvnc
|
||||
copy:
|
||||
src: vncpasswd
|
||||
dest: /etc/vncpasswd
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0600
|
||||
|
||||
- name: Configuring lightdm for tightvnc server
|
||||
copy:
|
||||
src: 60-vnc.conf
|
||||
dest: /usr/share/lightdm/lightdm.conf.d/60-vnc.conf
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
|
||||
# Not restarting lightdm: the user may be using the session.
|
||||
# tightvnc will be used in next session.
|
Loading…
x
Reference in New Issue
Block a user