kayobe/ansible/firewall.yml
Mark Goddard 7d15aa16f2 Support configuration of firewalld
Adds support for configuring firewalld for CentOS hosts managed by
Kayobe.

* create zones
* set default zone
* set zone for interfaces
* define rules

Change-Id: Id60e25e129e323f3c07e702bb81a11efc530fb3e
Story: 2008991
Task: 42644
2021-10-04 10:36:13 +01:00

13 lines
303 B
YAML

---
- name: Ensure firewall is configured
hosts: seed-hypervisor:seed:overcloud
tags:
- config
- firewall
tasks:
- name: Configure the firewall
include_role:
name: "firewall-{{ ansible_facts.os_family | lower }}"
when:
- ansible_facts.os_family == 'RedHat'