templier-ansible/roles/multimedia/tasks/main.yml
Yohann D'ANELLO f84085a142
Install patch, jq, obs-studio
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2021-03-21 00:42:38 +01:00

39 lines
856 B
YAML

---
- name: Queries package manager for multimedia installation
package:
name:
- feh
- mpv
- obs-studio
- 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
owner: '{{ user.name }}'
group: '{{ user.name }}'
mode: 0700
with_items :
- 'mpv/'
- 'zathura/'
become_user: '{{ user.name }}'
- name: Copy multimedia configuration files
template:
src: '{{ item.src }}'
dest: '.config/{{ item.dest }}'
owner: '{{ user.name }}'
group: '{{ user.name }}'
mode: 0644
with_items:
- { src: 'zathurarc.j2', dest: 'zathura/zathurarc' }
- { src: 'mpv.conf.j2', dest: 'mpv/mpv.conf' }
become_user: '{{ user.name }}'