From 444e92edce889e110234469b73fb0cb47afa4fca Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Sun, 19 Mar 2023 17:54:25 +0200 Subject: [PATCH] change to loop --- tasks/configure.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/configure.yml b/tasks/configure.yml index 7e995e0..0eead67 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -97,7 +97,7 @@ ufw: rule: allow port: "{{ item.stream_port }}" - with: "{{ motion_config['cameras'] | selectattr('stream_port', 'defined') }}" + loop: "{{ motion_config['cameras'] | selectattr('stream_port', 'defined') }}" when: handle_ufw - name: Enable motion web control in ufw @@ -105,7 +105,7 @@ rule: allow from_ip: "{{ item }}" port: "{{ motion_config['webcontrol_port'] }}" - with: "{{ localnetworks }}" + loop: "{{ localnetworks }}" when: handle_ufw - name: Ensure motion can read signal configuration