diff --git a/playbook_sway.yml b/playbook_sway.yml index b7ba823..8b5846d 100644 --- a/playbook_sway.yml +++ b/playbook_sway.yml @@ -141,33 +141,19 @@ - sway - foot - waybar - - - name: Copy sway config to config - ansible.builtin.copy: - src: //tmp/dotfiles/sway_config - dest: /home/tobi/.config/sway/config - owner: tobi - group: tobi - mode: '0644' - remote_src: yes - - - name: Copy waybar config to config - ansible.builtin.copy: - src: //tmp/dotfiles/waybar.config - dest: /home/tobi/.config/waybar/config - owner: tobi - group: tobi - mode: '0644' - remote_src: yes - - name: Copy foot config to config - ansible.builtin.copy: - src: //tmp/dotfiles/foot.ini - dest: /home/tobi/.config/foot/foot.ini - owner: tobi - group: tobi - mode: '0644' + - name: Your copy task + copy: + src: //tmp/dotfiles/{{ item.src }} + dest: /home/tobi/.config/{{ item.dest }} remote_src: yes + with_items: + - { src: 'sway_config', dest: 'sway/config' } + - { src: 'foot.ini', dest: 'foot/foot.ini' } + - { src: 'waybar/waybar.config', dest: 'waybar/config' } + - { src: 'waybar/style.css', dest: 'waybar/style.css' } + + - name: Enable service ly, and not touch the state ansible.builtin.service: