2021-01-29 00:08:39 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Queries package manager for multimedia installation
|
|
|
|
package:
|
|
|
|
name:
|
|
|
|
- feh
|
|
|
|
- mpv
|
|
|
|
- vlc
|
|
|
|
- zathura
|
|
|
|
- zathura-pdf-poppler
|
|
|
|
register: pkg_result
|
|
|
|
retries: 3
|
|
|
|
until: pkg_result is succeeded
|
|
|
|
|
|
|
|
- name: Create multimedia folder hierarchy
|
|
|
|
file:
|
|
|
|
path: '.config/{{ item }}'
|
|
|
|
state: directory
|
2021-03-17 23:25:44 +00:00
|
|
|
owner: '{{ user.name }}'
|
|
|
|
group: '{{ user.name }}'
|
|
|
|
mode: 0700
|
2021-01-29 00:08:39 +00:00
|
|
|
with_items :
|
|
|
|
- 'mpv/'
|
|
|
|
- 'zathura/'
|
2021-03-17 23:25:44 +00:00
|
|
|
become_user: '{{ user.name }}'
|
2021-01-29 00:08:39 +00:00
|
|
|
|
|
|
|
- name: Copy multimedia configuration files
|
|
|
|
template:
|
|
|
|
src: '{{ item.src }}'
|
|
|
|
dest: '.config/{{ item.dest }}'
|
2021-03-17 23:25:44 +00:00
|
|
|
owner: '{{ user.name }}'
|
|
|
|
group: '{{ user.name }}'
|
|
|
|
mode: 0644
|
2021-01-29 00:08:39 +00:00
|
|
|
with_items:
|
|
|
|
- { src: 'zathurarc.j2', dest: 'zathura/zathurarc' }
|
|
|
|
- { src: 'mpv.conf.j2', dest: 'mpv/mpv.conf' }
|
2021-03-17 23:25:44 +00:00
|
|
|
become_user: '{{ user.name }}'
|