Deploy a Firewall in Ansible

Please have a playbook template to deploy a Firewall in Ansible, there are not many on the internet, I have tried with them but they don’t work for me, not Ansible firewallD, I was trying with UFW but I have not had any results either. Please someone who can help me with this issue, I thank in advance whoever does it for help.

Sounds like ansible is totally irrelevant to you.

First pick a firewall that suits your requirements and only then look how to automate it.

Excuse me, I’m new to ansible. I don’t know if you can help me, how can I check that the port of the firewall that I implemented was blocked or the change was made in the host node, the playbook has already run but I need to know how to do the rest

Excuse me, I'm new to ansible. I don't know if you can help me, how can I check that the port of the firewall that I implemented was blocked or the change was made in the host node, the playbook has already run but I need to know how to do the rest

It would be helpful to reveal your playbook.

Try nmap to check whether ports are open or not.

Regards
         Racke

Or netcat, which is lighterweight and tends to upset security people less.

>
> > Excuse me, I'm new to ansible. I don't know if you can help me, how can I check that the port of the firewall that I implemented was blocked or the change was made in the host node, the playbook has already run but I need to know how to do the rest
>
> It would be helpful to reveal your playbook.
>
> Try nmap to check whether ports are open or not.
>
> Regards
> Racke

Or netcat, which is lighterweight and tends to upset security people less.

      Another alternative is to use ansible to retrieve a list of the
current firewall settings