Skip to content

Commit

Permalink
Use of parameter 'port' is deprecated in module 'community.general.uf…
Browse files Browse the repository at this point in the history
…w'. Parameter 'to_port' is a new alternative
  • Loading branch information
robert-de-bock committed Sep 18, 2023
1 parent 4536c72 commit 9acd94e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
- name: Open ports (ufw)
community.general.ufw:
rule: "{{ item.rule | default(firewall_default_rule) }}"
port: "{{ item.name }}"
to_port: "{{ item.name }}"
proto: "{{ item.protocol | default(firewall_default_protocol) }}"
loop: "{{ firewall_services }}"
when:
Expand All @@ -46,7 +46,7 @@
- name: Close ports (ufw)
community.general.ufw:
rule: "{{ item.rule | default(firewall_default_rule) }}"
port: "{{ item.name }}"
to_port: "{{ item.name }}"
proto: "{{ item.protocol | default(firewall_default_protocol) }}"
delete: yes
loop: "{{ firewall_services }}"
Expand Down

0 comments on commit 9acd94e

Please sign in to comment.