convert the ports from string to int

This commit is contained in:
Andreas Zweili 2022-01-10 17:18:53 +01:00
parent 257bd982bf
commit a7e4f3a308
1 changed files with 2 additions and 2 deletions

View File

@ -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