ansible-role-motion/tasks/install.yml
2023-07-06 09:32:55 +03:00

28 lines
682 B
YAML

---
- name: Install required software
apt:
name:
- motion
- mutt
- ffmpeg
- curl
- 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
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
- name: Ensure motion_hass is installed
ansible.builtin.pip:
name: git+ssh://git@repos.susurrando.com:7272/srv/git.repos/motion_hass.git