monakhos/ansible/roles/xremap/tasks/main.yaml

29 lines
626 B
YAML
Raw Normal View History

- name: Install xremap via AUR
import_role:
name: aur
vars:
packages:
- xremap-wlroots-bin
- name: Setup xremap dir
file:
path: "{{ home }}/.config/xremap"
state: directory
recurse: true
2024-05-27 21:19:04 +00:00
- name: Generate xremap config
shell: "python3 {{ home }}/.dots/scripts/generate_xremap_config.py"
- name: Generate xremap systemd service unit
become: true
template:
src: systemd/system/xremap.service
dest: /usr/lib/systemd/system/xremap.service
- name: Enable xremap systemd service
become: true
2024-05-27 21:19:04 +00:00
ansible.builtin.systemd_service:
name: xremap
state: started
enabled: true