2022-10-11 09:19:01 +02:00
|
|
|
---
|
|
|
|
- name: Install required software
|
|
|
|
apt:
|
|
|
|
name:
|
|
|
|
- motion
|
|
|
|
- mutt
|
2023-03-20 22:23:59 +01:00
|
|
|
- ffmpeg
|
|
|
|
- curl
|
2022-10-11 09:19:01 +02:00
|
|
|
|
|
|
|
- name: Deploy script to process events
|
|
|
|
copy:
|
|
|
|
src: files/process_motion_event.sh
|
|
|
|
dest: /usr/local/bin/process_motion_event.sh
|
|
|
|
owner: motion
|
|
|
|
group: motion
|
2023-03-11 10:27:54 +01:00
|
|
|
mode: 0750
|
|
|
|
|
|
|
|
- name: Deploy script to transfer recordings
|
|
|
|
copy:
|
|
|
|
src: files/transfer_recordings.sh
|
|
|
|
dest: /usr/local/bin/transfer_recordings.sh
|
|
|
|
owner: motion
|
|
|
|
group: motion
|
|
|
|
mode: 0750
|
2023-03-17 14:46:02 +01:00
|
|
|
|
|
|
|
- name: Ensure motion_hass is installed
|
|
|
|
ansible.builtin.pip:
|
2024-03-22 23:57:17 +01:00
|
|
|
name: git+ssh://git@repos.susurrando.com:1122/srv/git.repos/motion_hass.git
|