Install and run Firewalld, and enable services.
List of services or ports (in the format of port/protocol
or port-port/protocol
) to enable.
Note that the services must already be known to Firewalld, i.e. their packages must be installed.
---
- hosts:
- foobar
tasks:
- name: Configure firewall
include_role:
name: devgateway.firewalld
vars:
fwd_services:
- vnc-server
handlers:
- name: Firewall settings changed
debug:
msg: Reconnect to the server
GPLv3+
Copyright 2018, Development Gateway