summaryrefslogtreecommitdiffstats
path: root/roles/obs/tasks/tigervnc.yml
blob: e895becb1a9eee034592cadb6889efa1b78d50da (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
- name: Create VNC dirs
  file:
    path: ~{{ emacsconf_user }}/.vnc
    state: directory
    owner: "{{ emacsconf_user }}"
    group: "{{ emacsconf_group }}"
    mode: 0755
# https://github.com/sdarwin/Ansible-VNC/blob/master/tasks/main.yml
- name: Set VNC password
  shell: |
    set -o pipefail
    printf "{{ vnc_password }}\n{{ vnc_password }}\n\n" | vncpasswd ~{{ emacsconf_user }}/.vnc/passwd
  args:
    chdir: "~{{ emacsconf_user }}/.vnc"
    creates: "~{{ emacsconf_user }}/.vnc/passwd"
    executable: /bin/bash
- name: Set up xstartup for the tracks
  template:
    src: xstartup-track
    dest: ~{{ emacsconf_user }}/.vnc/xstartup
    owner: "{{ emacsconf_user }}"
    group: "{{ emacsconf_group }}"
    mode: 0700
- name: Set up xresources
  template:
    src: xresources
    dest: ~{{ emacsconf_user }}/.Xresources
    owner: "{{ emacsconf_user }}"
    group: "{{ emacsconf_group }}"
    mode: 0600
- name: Set up VNC scripts
  template:
    src: vnc-track
    dest: "~{{ emacsconf_user }}/bin/track-vnc"
    mode: 0755
    owner: "{{ emacsconf_user }}"
    group: "{{ emacsconf_group }}"