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.

51 lines
998B

  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: vnc/Xvnc-session.j2
  36. dest: ~/.vnc/Xvnc-session
  37. mode: 0755
  38. - name: vnc xsession script
  39. template:
  40. src: vnc/xsession.j2
  41. dest: ~/.vnc/xsession
  42. mode: 0755