mirror of
https://github.com/morten-olsen/configs.git
synced 2026-02-08 00:46:24 +01:00
Add hyprland
This commit is contained in:
44
playbooks/roles/desktop_kitty/tasks/main.yml
Normal file
44
playbooks/roles/desktop_kitty/tasks/main.yml
Normal file
@@ -0,0 +1,44 @@
|
||||
---
|
||||
- name: "Load vars"
|
||||
ansible.builtin.include_vars: "{{ item }}"
|
||||
tags:
|
||||
- install
|
||||
with_first_found:
|
||||
- files:
|
||||
- "{{ ansible_distribution }}-{{ ansible_distribution_release }}.yml"
|
||||
- "{{ ansible_distribution }}.yml"
|
||||
- "{{ ansible_os_family }}.yml"
|
||||
- default.yml
|
||||
paths: ../vars
|
||||
skip: true
|
||||
|
||||
- name: "Install dependencies"
|
||||
tags:
|
||||
- install
|
||||
when: desktop_kitty_pks
|
||||
become: "{{ install_with_root }}"
|
||||
ansible.builtin.package:
|
||||
name: "{{ desktop_kitty_pkgs }}"
|
||||
|
||||
- name: "Ensure dir"
|
||||
tags:
|
||||
- config
|
||||
ansible.builtin.file:
|
||||
path: "{{ home }}/.config/dunst"
|
||||
state: directory
|
||||
mode: "0700"
|
||||
owner: "{{ username }}"
|
||||
|
||||
- name: "Copy templates"
|
||||
tags:
|
||||
- config
|
||||
ansible.builtin.template:
|
||||
src: "{{ item.src }}"
|
||||
dest: "{{ home }}/.config/kitty/{{ item.path | regex_replace('\\.j2$', '') }}"
|
||||
mode: "{{ item.mode }}"
|
||||
owner: "{{ username }}"
|
||||
with_community.general.filetree:
|
||||
- ../templates
|
||||
loop_control:
|
||||
label: "{{ item.path }}"
|
||||
when: item.state == 'file'
|
||||
Reference in New Issue
Block a user