machine_setup/ansible/roles/webcam/tasks/freebsd.yaml

29 lines
604 B
YAML
Raw Normal View History

2023-03-04 20:09:32 +00:00
- name: Install packages
package:
name:
- webcamd
- pwcview # For testing webcam
- v4l-utils # Needed for support in browsers
- v4l_compat # Needed for support in browsers
2023-03-04 20:09:32 +00:00
state: present
- name: Install loader.conf
copy:
src: "files/{{ item }}_loader.conf"
dest: "/boot/loader.conf.d/{{ item }}.conf"
mode: 0644
owner: root
group: wheel
loop:
- cuse
- name: Install service configuration
copy:
src: "files/{{ item }}_rc.conf"
dest: "/etc/rc.conf.d/{{ item }}"
mode: 0644
owner: root
group: wheel
loop:
- webcamd