mirror of
https://github.com/morten-olsen/configs.git
synced 2026-02-08 00:46:24 +01:00
45 lines
1.0 KiB
YAML
45 lines
1.0 KiB
YAML
---
|
|
- 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_dunst_pkgs
|
|
become: "{{ install_with_root }}"
|
|
ansible.builtin.package:
|
|
name: "{{ desktop_dunst_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/dunst/{{ item.path | regex_replace('\\.j2$', '') }}"
|
|
mode: "{{ item.mode }}"
|
|
owner: "{{ username }}"
|
|
with_community.general.filetree:
|
|
- ../templates
|
|
loop_control:
|
|
label: "{{ item.path }}"
|
|
when: item.state == 'file'
|