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
2024-07-18 20:48:07 +02:00

25 lines
686 B
YAML

---
- name: Install sway-dynamic-names
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 }}"
- 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 }}"