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 796B

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