Add a media role for image/video viewers/editors.

This commit is contained in:
Tom Alexander
2022-11-26 18:41:41 -05:00
parent ef6a89042f
commit 1c41d23474
13 changed files with 134 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
- name: Install packages
package:
name:
- ffmpeg # for cast_file
state: present
- name: Install packages
when: install_graphics
package:
name:
- mpv
- evince
- gimp
- imv # image viewer
state: present
- include_tasks: "tasks/{{graphics_driver}}.yaml"
- import_tasks: tasks/freebsd.yaml
when: 'os_flavor == "freebsd"'
- import_tasks: tasks/linux.yaml
when: 'os_flavor == "linux"'
- include_tasks:
file: tasks/peruser.yaml
apply:
become: yes
become_user: "{{ initialize_user }}"
loop: "{{ users | dict2items | community.general.json_query('[?value.initialize==`true`].key') }}"
loop_control:
loop_var: initialize_user