blob: e895becb1a9eee034592cadb6889efa1b78d50da (
plain) (
tree)
|
|
- 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 }}"
|