templier-ansible/roles/notification/tasks/main.yml

31 lines
676 B
YAML
Raw Normal View History

2021-01-29 00:08:39 +00:00
---
- name: Queries package manager for notification installation
package:
name:
- dunst
- gnome-icon-theme
- gnome-icon-theme-extras
- gnome-icon-theme-symbolic
register: pkg_result
retries: 3
until: pkg_result is succeeded
- name: Create dunst config directory
file:
path: '.config/dunst/'
state: directory
owner: '{{ user.name }}'
group: '{{ user.name }}'
mode: 0755
become_user: '{{ user.name }}'
2021-01-29 00:08:39 +00:00
- name: Copy dunst configuration file
template:
src: 'dunstrc.j2'
dest: '.config/dunst/dunstrc'
owner: '{{ user.name }}'
group: '{{ user.name }}'
mode: 0644
become_user: '{{ user.name }}'