You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1016 B

---
- 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'
- name: Create waybar dir
ansible.builtin.file:
dest: "/home/{{ uid }}/.config/waybar"
state: directory
- name: Install waybar config
ansible.builtin.template:
src: ../templates/waybar_config.j2
dest: "/home/{{ uid }}/.config/waybar/config"
owner: "{{ uid }}"
group: "{{ uid }}"
mode: '0640'