diff --git a/tasks/syslog.yml b/tasks/syslog.yml index fa577a8..f00607a 100644 --- a/tasks/syslog.yml +++ b/tasks/syslog.yml @@ -34,5 +34,15 @@ owner: root group: root mode: '0644' + + - name: Open applicable firewall rules + ansible.posix.firewalld: + port: "{{ item }}" + permanent: true + state: enabled + immediate: true + loop: + - "514/tcp" + - "514/udp" when: syslog_type == "server" ...