--- - name: Set up sway vars: uid: "{{ lookup('env','USER') }}" hosts: localhost connection: local become: false tasks: - name: Install autotiling ansible.builtin.command: cmd: pipx install autotiling creates: "/home/{{ uid }}/.local/bin/autotiling" - name: Create sway dir ansible.builtin.file: dest: "/home/{{ uid }}/.config/sway" state: directory - name: Install sway config ansible.builtin.template: src: ../templates/sway_config.j2 dest: "/home/{{ uid }}/.config/sway/config" owner: "{{ uid }}" group: "{{ uid }}" mode: '0640'