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.

37 lines
785B

  1. ---
  2. - name: background packages
  3. apt:
  4. pkg: "{{ item }}"
  5. with_items:
  6. - mate-backgrounds
  7. - gnome-backgrounds
  8. - name: directory for backgrounds
  9. file:
  10. path: /opt/backgrounds
  11. state: directory
  12. - name: copy kita-pro backgrounds
  13. synchronize:
  14. src: background/
  15. dest: /opt/backgrounds
  16. perms: false
  17. - name: find all other backgrounds
  18. find:
  19. paths:
  20. - /usr/share/backgrounds/gnome
  21. - /usr/share/backgrounds/mate/nature
  22. - /usr/share/backgrounds/mate/abstract
  23. recurse: yes
  24. excludes: "{{_excluded_backgrounds}}"
  25. register: _find_backgrounds
  26. - name: link background files
  27. file:
  28. src: "{{item}}"
  29. dest: "/opt/backgrounds/{{item|basename}}"
  30. state: link
  31. with_items: "{{_find_backgrounds|json_query('files[].path')}}"