Use fileglob to copy i3blocks scripts
This commit is contained in:
parent
d82483cc4f
commit
575c17be92
7 changed files with 6 additions and 12 deletions
|
@ -132,28 +132,22 @@
|
|||
- {src: '~/.git_clones/i3blocks-contrib/apt-upgrades/apt-upgrades', path: '~/.config/i3blocks/scripts/apt-upgrades'}
|
||||
when: ansible_facts['distribution'] == 'Debian'
|
||||
|
||||
- name: Copy scripts (All)
|
||||
- name: Copy wallpaper scripts
|
||||
ansible.builtin.copy:
|
||||
src: "{{ item.src }}"
|
||||
dest: "{{ item.dest }}"
|
||||
mode: 0755
|
||||
with_items:
|
||||
- {src: 'nagstamon', dest: '~/.config/i3blocks/scripts/nagstamon'}
|
||||
- {src: 'battery', dest: '~/.config/i3blocks/scripts/battery'}
|
||||
- {src: 'free_disk_space', dest: '~/.config/i3blocks/scripts/free_disk_space'}
|
||||
- {src: 'pub-ip', dest: '~/.config/i3blocks/scripts/pub-ip'}
|
||||
- {src: 'newmail', dest: '~/.config/i3blocks/scripts/newmail'}
|
||||
- {src: 'clitip_wallpaper.sh', dest: '~/.local/bin/clitip_wallpaper.sh'}
|
||||
- {src: 'xkcd_wallpaper.sh', dest: '~/.local/bin/xkcd_wallpaper.sh'}
|
||||
|
||||
- name: Copy scripts (Archlinux)
|
||||
- name: Copy scripts (All)
|
||||
ansible.builtin.copy:
|
||||
src: "{{ item.src }}"
|
||||
dest: "{{ item.dest }}"
|
||||
src: "{{ item }}"
|
||||
dest: ~/.config/i3blocks/scripts/
|
||||
mode: 0755
|
||||
with_items:
|
||||
- {src: 'arch_linux_news', dest: '~/.config/i3blocks/scripts/arch_linux_news'}
|
||||
when: ansible_facts['distribution'] == 'Archlinux'
|
||||
with_fileglob:
|
||||
- scripts/*
|
||||
|
||||
- name: Update user dirs
|
||||
ansible.builtin.command: xdg-user-dirs-update
|
||||
|
|
Loading…
Add table
Reference in a new issue