You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

45 lines
889B

  1. ---
  2. - name: vnc directory
  3. file:
  4. path: ~/.vnc
  5. state: directory
  6. mode: 0700
  7. - name: vnc passwd
  8. copy:
  9. content: "{{ lookup('pipe','pwgen 24 1' )}}"
  10. dest: ~/.vnc/passwd
  11. mode: 0600
  12. force: no
  13. - name: fetch vnc passwd
  14. fetch:
  15. src: ~/.vnc/passwd
  16. dest: ~/.vnc/passwd.{{inventory_hostname}}
  17. flat: yes
  18. - name: copy vnc passwd files
  19. copy:
  20. src: ~/.vnc/passwd.{{item}}
  21. dest: ~/.vnc/passwd.{{item}}
  22. with_items: "{{ home_access_to_hosts }}"
  23. - name: default vnc client options
  24. template:
  25. src: vnc/default.tigervnc.j2
  26. dest: ~/.vnc/default.tigervnc
  27. mode: 0755
  28. - name: vncserver user service
  29. template:
  30. src: vnc/vncserver.service.j2
  31. dest: ~/.config/systemd/user/vncserver@.service
  32. notify: systemd daemon-reload
  33. - name: Xvnc-session script
  34. template:
  35. src: x11/xsessionrc.j2
  36. dest: ~/.vnc/Xvnc-session
  37. mode: 0755