21 lines
394 B
YAML
Raw Normal View History

2018-10-02 10:12:23 +04:00
---
- name: install packages
apt_rpm:
pkg: xorg-extension-vnc
state: installed
- name: enable vnc service
replace:
path: /etc/X11/xorg.conf.d/vnc.conf
regexp: '#(.*)'
replace: '\1'
notify: restart dm
- name: create directory
file:
path: /root/.vnc
state: directory
- name: set vnc password
shell: "vncpasswd -f <<< {{vnc_password}} > /root/.vnc/passwd"