25개 이상의 토픽을 선택하실 수 없습니다. 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.

57 lines
1.1KB

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