ansible-roles/library/roles/dovecot/tasks/dovecot_firewalld.yml

13 lines
645 B
YAML
Raw Normal View History

---
- name: Manage the firewalld rules
block:
- name: Manage the dovecot related services
firewalld: service={{ item.service }} zone={{ item.zone }} permanent={{ item.permanent | default(True) }} state={{ item.state }} immediate=True
with_items: '{{ dovecot_firewalld_services }}'
- name: Manage the dovecot related tcp/udp ports
2020-04-28 15:24:23 +02:00
firewalld: port={{ item.port }}/{{ item.protocol }} zone={{ item.zone }} permanent={{ item.permanent | default(True) }} state={{ item.state }} immediate=True
with_items: '{{ dovecot_firewalld_ports }}'
2020-04-28 15:24:23 +02:00
tags: [ 'dovecot', 'firewall', 'firewalld', 'iptables', 'iptables_rules' ]