Lint, remove some backup args from copy modules
This commit is contained in:
parent
223959a68d
commit
c9573d6e6a
1 changed files with 24 additions and 7 deletions
|
@ -75,11 +75,13 @@
|
|||
ansible.builtin.template:
|
||||
src: i3config.j2
|
||||
dest: ~/.config/i3/config
|
||||
backup: true
|
||||
mode: 0644
|
||||
|
||||
- name: Copy files
|
||||
ansible.builtin.copy: src={{ item.src }} dest={{ item.dest }} mode=0644 backup=true
|
||||
ansible.builtin.copy:
|
||||
src: "{{ item.src }}"
|
||||
dest: "{{ item.dest }}"
|
||||
mode: 0644
|
||||
with_items:
|
||||
- {src: 'i3blocksconfig', dest: '~/.config/i3blocks/config'}
|
||||
- {src: 'xinitrc', dest: '~/.xinitrc'}
|
||||
|
@ -90,7 +92,10 @@
|
|||
- {src: 'picom.conf', dest: '~/.config/picom.conf'}
|
||||
|
||||
- name: Symlink files (All)
|
||||
ansible.builtin.file: src={{ item.src }} path={{ item.path }} state=link
|
||||
ansible.builtin.file:
|
||||
src: "{{ item.src }}"
|
||||
path: "{{ item.path }}"
|
||||
state: link
|
||||
with_items:
|
||||
- {src: '~/.config/picom.conf', path: '~/.config/compton.conf'}
|
||||
- {src: '~/.git_clones/i3blocks-contrib/temperature/temperature', path: '~/.config/i3blocks/scripts/temperature'}
|
||||
|
@ -98,19 +103,28 @@
|
|||
- {src: '~/.git_clones/i3blocks-contrib/cpu_usage/cpu_usage', path: '~/.config/i3blocks/scripts/cpu_usage'}
|
||||
|
||||
- name: Symlink files (Archlinux)
|
||||
ansible.builtin.file: src={{ item.src }} path={{ item.path }} state=link
|
||||
ansible.builtin.file:
|
||||
src: "{{ item.src }}"
|
||||
path: "{{ item.path }}"
|
||||
state: link
|
||||
with_items:
|
||||
- {src: '~/.git_clones/i3blocks-contrib/arch-update/arch-update', path: '~/.config/i3blocks/scripts/arch-update'}
|
||||
when: ansible_facts['distribution'] == 'Archlinux'
|
||||
|
||||
- name: Symlink files (Debian)
|
||||
ansible.builtin.file: src={{ item.src }} path={{ item.path }} state=link
|
||||
ansible.builtin.file:
|
||||
src: "{{ item.src }}"
|
||||
path: "{{ item.path }}"
|
||||
state: link
|
||||
with_items:
|
||||
- {src: '~/.git_clones/i3blocks-contrib/apt-upgrades/apt-upgrades', path: '~/.config/i3blocks/scripts/apt-upgrades'}
|
||||
when: ansible_facts['distribution'] == 'Debian'
|
||||
|
||||
- name: Copy scripts (All)
|
||||
ansible.builtin.copy: src={{ item.src }} dest={{ item.dest }} mode=0755 backup=true
|
||||
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'}
|
||||
|
@ -120,7 +134,10 @@
|
|||
- {src: 'xkcd_wallpaper.sh', dest: '~/.local/bin/xkcd_wallpaper.sh'}
|
||||
|
||||
- name: Copy scripts (Archlinux)
|
||||
ansible.builtin.copy: src={{ item.src }} dest={{ item.dest }} mode=0755 backup=true
|
||||
ansible.builtin.copy:
|
||||
src: "{{ item.src }}"
|
||||
dest: "{{ item.dest }}"
|
||||
mode: 0755
|
||||
with_items:
|
||||
- {src: 'arch_linux_news', dest: '~/.config/i3blocks/scripts/arch_linux_news'}
|
||||
when: ansible_facts['distribution'] == 'Archlinux'
|
||||
|
|
Loading…
Add table
Reference in a new issue