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.
48 lines
1.4 KiB
48 lines
1.4 KiB
---
|
|
- name: Set up i3
|
|
vars:
|
|
uid: "{{ lookup('env','USER') }}"
|
|
TZ: "{{ lookup('env','TZ') }}"
|
|
wallpaper_path: /home/{{ uid }}/.config/wallpaper/debian.jpg
|
|
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 i3 dir
|
|
ansible.builtin.file:
|
|
dest: /home/{{ uid }}/.config/i3
|
|
state: directory
|
|
- name: Install i3 config
|
|
ansible.builtin.template:
|
|
src: ../templates/i3_config.j2
|
|
dest: /home/{{ uid }}/.config/i3/config
|
|
owner: '{{ uid }}'
|
|
group: '{{ uid }}'
|
|
mode: '0640'
|
|
notify: Reload i3
|
|
- name: Create wallpaper dir
|
|
ansible.builtin.file:
|
|
dest: /home/{{ uid }}/.config/wallpaper
|
|
state: directory
|
|
- name: Setup wall paper
|
|
ansible.builtin.copy:
|
|
dest: '{{ wallpaper_path }}'
|
|
src: ../data/debian.jpg
|
|
notify: Reload i3
|
|
- name: Install monitor script
|
|
ansible.builtin.template:
|
|
src: ../templates/monitors.sh.j2
|
|
dest: /home/{{ uid }}/.local/bin/monitors.sh
|
|
owner: '{{ uid }}'
|
|
group: '{{ uid }}'
|
|
mode: '0750'
|
|
notify: Reload i3
|
|
handlers:
|
|
- name: Reload i3
|
|
ansible.builtin.command:
|
|
cmd: i3-msg reload
|