From edee1248a0e84fc72f981c168af719768f3248d7 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Fri, 7 Apr 2023 14:11:51 +0300 Subject: [PATCH] Add option to enable disable transfers --- defaults/main.yml | 1 + tasks/configure.yml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/defaults/main.yml b/defaults/main.yml index d7580ff..fcffc8e 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -9,3 +9,4 @@ localnetworks: motion_bot_ntfy_server: 'http://ntfy.sh' # Empty to skip ntfy option motion_bot_ntfy_username: motion_bot motion_bot_ntfy_password: "{{ vault_motion_bot_ntfy_pass }}" +transfer_recordings: true diff --git a/tasks/configure.yml b/tasks/configure.yml index f68dd9c..3c73dc2 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -135,12 +135,14 @@ daemon_reload: true name: transfer_recordings.service enabled: true + when: transfer_recordings - name: Enable timer unit to transfer recordings systemd: daemon_reload: true name: transfer_recordings.timer enabled: true + when: transfer_recordings - name: Ensure motion_hass is configured template: