--- - name: Set up uwsm vars: uid: "{{ lookup('env','USER') }}" hosts: localhost connection: local become: false tasks: - name: Get source code ansible.builtin.command: chdir: /home/{{ uid }}/sources cmd: git clone https://github.com/Vladimir-csp/uwsm.git creates: /home/{{ uid }}/sources/uwsm - name: Build uwsm from source code ansible.builtin.command: chdir: /home/{{ uid }}/sources/uwsm cmd: meson setup --wipe --prefix=/usr/local build -Duuctl=enabled -Duwsm-app=enabled creates: /home/{{ uid }}/sources/uwsm/build - name: Install uwsm ansible.builtin.command: chdir: /home/{{ uid }}/sources/uwsm cmd: meson install -C build creates: /usr/local/bin/uwsm become: true - name: Install uwsm config ansible.builtin.template: src: ../templates/sway_desktop.j2 dest: /usr/share/wayland-sessions/swa.desktop owner: 'root' group: 'root' mode: '0640' become: true