Don't specify firewall rule position
This commit is contained in:
parent
1313f04b07
commit
00bbe5751a
|
@ -5,12 +5,8 @@
|
||||||
to_port: "{{ item.port }}"
|
to_port: "{{ item.port }}"
|
||||||
proto: "{{ item.proto }}"
|
proto: "{{ item.proto }}"
|
||||||
comment: "{{ item.comment }}"
|
comment: "{{ item.comment }}"
|
||||||
insert: "{{ ansible_loop.index }}"
|
|
||||||
rule: allow
|
rule: allow
|
||||||
loop: "{{ open_ports }}"
|
loop: "{{ open_ports }}"
|
||||||
loop_control:
|
|
||||||
extended: true
|
|
||||||
extended_allitems: false
|
|
||||||
|
|
||||||
- name: Enable UFW
|
- name: Enable UFW
|
||||||
community.general.ufw:
|
community.general.ufw:
|
||||||
|
|
Reference in a new issue