1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_i3wm.git synced 2024-08-16 10:09:53 +02:00
ansible_role_i3wm/tasks/dynamic_names.yml

26 lines
686 B
YAML
Raw Normal View History

2024-07-17 15:45:32 +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 }}"