Adding remote control to each client.

This commit is contained in:
Emiliano Vavassori 2016-02-20 21:01:01 +01:00
parent 205c578093
commit 4b0f230db9
4 changed files with 38 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1,7 @@
[VNCServer]
enabled=true
command=/usr/bin/Xvnc -rfbauth /etc/vncpasswd
port=9500
width=1280
height=1024
depth=24

View File

@ -0,0 +1 @@
~BワメムGエ

View 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.