30 lines
551 B
YAML
30 lines
551 B
YAML
|
- name: Create group
|
||
|
group:
|
||
|
name: "{{ ustreamer_group }}"
|
||
|
|
||
|
- name: Create user
|
||
|
user:
|
||
|
name: "{{ ustreamer_user }}"
|
||
|
group: "{{ ustreamer_group }}"
|
||
|
append: yes
|
||
|
groups:
|
||
|
- video
|
||
|
|
||
|
- name: Install ustreamer dependencies
|
||
|
apt:
|
||
|
name:
|
||
|
- ffmpeg
|
||
|
- ustreamer
|
||
|
|
||
|
- name: Install systemd unit
|
||
|
template: src=ustreamer.service.j2 dest=/lib/systemd/system/ustreamer.service
|
||
|
notify:
|
||
|
- Reload systemd
|
||
|
- Restart ustreamer
|
||
|
|
||
|
- name: Enable and start ustreamer
|
||
|
service:
|
||
|
name: ustreamer
|
||
|
state: started
|
||
|
enabled: yes
|