Skip to content

Commit

Permalink
Merge pull request #12 from projectpotos/feat-bg-customization
Browse files Browse the repository at this point in the history
fix: tasks
  • Loading branch information
Schroeffu authored Mar 22, 2023
2 parents 1d59e69 + 539a8a1 commit 7a231cf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,22 +39,22 @@
map(attribute="path") |
map("regex_replace", "^\/usr\/share\/backgrounds\/(.*)", "\1") |
list) |
difference(potos_wallpaper_images[1:]) |
difference(potos_wallpaper_images[1:] | map(attribute="filename" )) |
difference([potos_wallpaper_default_name])
}}'

- name: Install custom default background
ansible.builtin.copy:
src: 'potos_wallpaper/{{ potos_wallpaper_images[0] }}'
src: 'potos_wallpaper/{% if potos_wallpaper_images[0] is string%}{{ potos_wallpaper_images[0] }}{% else %}{{ potos_wallpaper_images[0].filename }}{% endif %}'
dest: '/usr/share/backgrounds/{{ potos_wallpaper_default_name }}'
owner: root
group: root
mode: '0755'

- name: Install custom backgrounds
ansible.builtin.copy:
src: 'potos_wallpaper/{{ item }}'
dest: '/usr/share/backgrounds/{{ item | basename }}'
src: 'potos_wallpaper/{% if item is string%}{{ item }}{% else %}{{ item.filename }}{% endif %}'
dest: '/usr/share/backgrounds/{% if item is string%}{{ item | basename }}{% else %}{{ item.filename | basename }}{% endif %}'
owner: root
group: root
mode: '0755'
Expand Down

0 comments on commit 7a231cf

Please sign in to comment.