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.

backgrounds.yaml 819B

1234567891011121314151617181920212223242526272829303132333435363738
  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. owner: false
  18. group: false
  19. - name: find all other backgrounds
  20. find:
  21. paths:
  22. - /usr/share/backgrounds/gnome
  23. - /usr/share/backgrounds/mate/nature
  24. - /usr/share/backgrounds/mate/abstract
  25. recurse: yes
  26. excludes: "{{_excluded_backgrounds}}"
  27. register: _find_backgrounds
  28. - name: link background files
  29. file:
  30. src: "{{item}}"
  31. dest: "/opt/backgrounds/{{item|basename}}"
  32. state: link
  33. with_items: "{{_find_backgrounds|json_query('files[].path')}}"