change to loop
This commit is contained in:
parent
75b8a003d4
commit
444e92edce
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue