ansible-role-motion/tasks/install.yml

26 lines
650 B
YAML

---
- name: Install required software
apt:
name:
- motion
- mutt
- 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:1122/srv/git.repos/motion_hass.git