You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

44 lines
1.0 KiB

- hosts: closet
gather_facts: true
become: yes
roles:
- { role: usable, tags: usable }
- { role: ssh, tags: ssh }
- { role: pihole, tags: pihole }
- { role: very_large_array, tags: very_large_array }
- { role: samba, tags: samba }
- { role: self_host, tags: self_host }
# - { role: certbot, tags: certbot }
- { role: web, tags: web }
- { role: ssh_tunnel, tags: ssh_tunnel }
tasks:
- name: Allow TCP ports
iptables:
chain: INPUT
protocol: tcp
destination_ports:
- 22
- 80
- 443
jump: ACCEPT
- hosts: bastion
gather_facts: true
become: yes
roles:
- { role: usable, tags: usable }
- { role: ssh, tags: ssh }
- { role: web, tags: web }
- { role: jump_server, tags: jump_server }
- { role: ssh_tunnel_receiver, tags: ssh_tunnel_receiver }
tasks:
- name: Allow TCP ports
iptables:
chain: INPUT
protocol: tcp
destination_ports:
- 22
- 80
- 443
jump: ACCEPT