您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
此仓库已存档。您可以查看文件和克隆,但不能推送或创建工单/合并请求。

51 行
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