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.

vnc.yaml 484B

4 years ago
1234567891011121314151617181920212223242526
  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 }}"