generated from ansible/ansible_template
convert the ports from string to int
This commit is contained in:
parent
257bd982bf
commit
a7e4f3a308
|
@ -84,7 +84,7 @@
|
|||
- name: "Open the required UDP ports"
|
||||
ansible.builtin.ufw:
|
||||
rule: "allow"
|
||||
port: "{{ item }}"
|
||||
port: "{{ item | int }}"
|
||||
proto: "udp"
|
||||
loop: "{{ docker_udp_ports }}"
|
||||
when: docker_udp_ports is defined
|
||||
|
@ -92,7 +92,7 @@
|
|||
- name: "Open the required TCP ports"
|
||||
ansible.builtin.ufw:
|
||||
rule: "allow"
|
||||
port: "{{ item }}"
|
||||
port: "{{ item | int }}"
|
||||
proto: "tcp"
|
||||
loop: "{{ docker_tcp_ports }}"
|
||||
when: docker_tcp_ports is defined
|
||||
|
|
Reference in New Issue