2024-07-17 15:45:32 +02:00
|
|
|
---
|
2024-07-18 13:23:54 +02:00
|
|
|
- name: Install sway-dynamic-names
|
2024-07-17 15:45:32 +02:00
|
|
|
become: true
|
|
|
|
ansible.builtin.pip:
|
|
|
|
name: sway-dynamic-names
|
|
|
|
virtualenv: '{{ swayusr.home }}/.config/sway/venv'
|
|
|
|
|
|
|
|
- name: Make sure venv has user permissions
|
|
|
|
become: true
|
|
|
|
ansible.builtin.file:
|
|
|
|
path: '{{ swayusr.home }}/.config/sway/venv'
|
|
|
|
recurse: true
|
|
|
|
state: directory
|
|
|
|
mode: "u=rwX,g=rX"
|
|
|
|
owner: "{{ swayusr.user }}"
|
|
|
|
group: "{{ swayusr.user }}"
|
2024-07-18 20:48:07 +02:00
|
|
|
|
|
|
|
- name: Deploy sway-dynamic-names config
|
|
|
|
become: true
|
|
|
|
ansible.builtin.template:
|
|
|
|
src: "templates/sdn-config.yaml.j2"
|
|
|
|
dest: '{{ swayusr.home }}/.config/sway/sdn-config.yaml'
|
|
|
|
mode: '0640'
|
|
|
|
owner: "{{ swayusr.user }}"
|
|
|
|
group: "{{ swayusr.user }}"
|