41 lines
No EOL
783 B
YAML
41 lines
No EOL
783 B
YAML
---
|
|
|
|
- name: Accept INPUT 80
|
|
ansible.builtin.iptables:
|
|
chain: INPUT
|
|
protocol: tcp
|
|
destination_port: 80
|
|
jump: ACCEPT
|
|
comment: Accept INPUT 80
|
|
state: present
|
|
become: yes
|
|
|
|
- name: Accept INPUT 443
|
|
ansible.builtin.iptables:
|
|
chain: INPUT
|
|
protocol: tcp
|
|
destination_port: 443
|
|
jump: ACCEPT
|
|
comment: Accept INPUT 443
|
|
state: present
|
|
become: yes
|
|
|
|
- name: Accept OUTPUT 80
|
|
ansible.builtin.iptables:
|
|
chain: OUTPUT
|
|
protocol: tcp
|
|
destination_port: 80
|
|
jump: ACCEPT
|
|
comment: Accept OUTPUT 80
|
|
state: present
|
|
become: yes
|
|
|
|
- name: Accept OUTPUT 443
|
|
ansible.builtin.iptables:
|
|
chain: OUTPUT
|
|
protocol: tcp
|
|
destination_port: 443
|
|
jump: ACCEPT
|
|
comment: Accept OUTPUT 443
|
|
state: present
|
|
become: yes |