add_stream_shortcut.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. ---
  2. - hosts: kc41
  3. vars:
  4. release: focal
  5. user_permission: student
  6. stream_multicast_link: 'udp://@224.0.0.230:8001'
  7. icon_patch: /home/{{ user_permission }}/icons
  8. shortcut_ico_path: "{{ icon_patch }}/stream-icon.png"
  9. become: true
  10. gather_facts: no
  11. tasks:
  12. - name: Install VLC
  13. ansible.builtin.apt:
  14. pkg:
  15. - vlc
  16. - name: Create icon dir
  17. ansible.builtin.file:
  18. path: "{{ icon_patch }}"
  19. owner: "{{ user_permission }}"
  20. group: "{{ user_permission }}"
  21. state: directory
  22. - name: Copy icon
  23. ansible.builtin.copy:
  24. src: /home/vidikon/ANSIBLE/software-playbooks/ico/stream-icon.png
  25. dest: "{{ icon_patch }}"
  26. owner: "{{ user_permission }}"
  27. group: "{{ user_permission }}"
  28. - name: Copy shortcut template
  29. ansible.builtin.template:
  30. src: /home/vidikon/ANSIBLE/software-playbooks/program_shortcut/Connect.j2
  31. dest: '/home/{{ user_permission }}/Рабочий стол/Connect.desktop'
  32. owner: "{{ user_permission }}"
  33. group: "{{ user_permission }}"
  34. mode: u=rwx,g=rwx,o=r