add system config
This commit is contained in:
parent
dced66e626
commit
bf3068fdfa
1 changed files with 24 additions and 0 deletions
|
@ -143,3 +143,27 @@
|
|||
src: templates/motion_hass.conf.j2
|
||||
dest: /etc/motion_hass.conf
|
||||
backup: yes
|
||||
|
||||
- name: Deploy service unit for HomeAssistant integration
|
||||
copy:
|
||||
src: files/motion_hass.service
|
||||
dest: /etc/systemd/system/motion_hass.service
|
||||
notify: Reload systemd
|
||||
|
||||
- name: Deploy timer unit for HomeAssistant integration
|
||||
copy:
|
||||
src: files/motion_hass.timer
|
||||
dest: /etc/systemd/system/motion_hass.timer
|
||||
notify: Reload systemd
|
||||
|
||||
- name: Enable service unit for HomeAssistant integration
|
||||
systemd:
|
||||
daemon_reload: true
|
||||
name: motion_hass.service
|
||||
enabled: true
|
||||
|
||||
- name: Enable timer unit for HomeAssistant integration
|
||||
systemd:
|
||||
daemon_reload: true
|
||||
name: motion_hass.timer
|
||||
enabled: true
|
||||
|
|
Loading…
Reference in a new issue