Member-only story
Open firewall ports in RedHat-like systems — Ansible module firewalld
How to open HTTP and HTTPS firewall ports in RedHat-like systems with Ansible. I’m going to show you a live demo and some simple Ansible code.
How to open firewall ports in RedHat-like systems with Ansible?
I’m going to show you a live demo and some simple Ansible code.
I’m Luca Berton and welcome to today’s episode of Ansible Pilot.
Ansible open firewall ports in RedHat-like systems
Today we’re talking about the Ansible module `firewalld`.
The full name is `ansible.posix.firewalld`, which means that is part of the collection targeting POSIX platforms. This module requires Ansible 2.9+.
It works in RedHat-like systems with firewalld >= 0.2.11 and python firewalld bindings.
It manages arbitrary ports/services with firewalld.
Parameters
- state string — enabled / present / absent / disabled
- service string — firewall-cmd — get-services