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