@@ -12,6 +12,12 @@ | |||||
dest: ~/.vnc/config | dest: ~/.vnc/config | ||||
mode: 0644 | mode: 0644 | ||||
- name: vnc env | |||||
template: | |||||
src: vnc/vncserver.env.j2 | |||||
dest: ~/.vnc/vncserver.env | |||||
mode: 0644 | |||||
- name: vnc server config | - name: vnc server config | ||||
template: | template: | ||||
src: vnc/vnc.conf.j2 | src: vnc/vnc.conf.j2 | ||||
@@ -0,0 +1,3 @@ | |||||
{{ ansible_managed | comment }} | |||||
VNCSERVER_OPTIONS="{{vncserver_options|replace('\n',' ')|trim}}" |
@@ -19,8 +19,9 @@ Description=vncserver service - display %i | |||||
After=syslog.target network.target | After=syslog.target network.target | ||||
[Service] | [Service] | ||||
EnvironmentFile=%h/.vnc/vncserver.env | |||||
Type=forking | Type=forking | ||||
ExecStart=/usr/bin/vncserver -autokill %i | |||||
ExecStart=/usr/bin/vncserver -autokill %i $VNCSERVER_OPTIONS | |||||
ExecStop=/usr/bin/vncserver -kill %i | ExecStop=/usr/bin/vncserver -kill %i | ||||
[Install] | [Install] | ||||
@@ -132,3 +132,8 @@ background_image_path: ~/.backgrounds/{{background_image|basename}} | |||||
background_command: feh --no-fehbg --bg-fill {{background_image_path}} | background_command: feh --no-fehbg --bg-fill {{background_image_path}} | ||||
timer_folder: ~/.timer | timer_folder: ~/.timer | ||||
vncserver_options: | | |||||
{% if not home_vncserver_allow_resize %} | |||||
-AcceptSetDesktopSize=0 | |||||
{% endif %} |