Check if firewall is not running and disabled. This is how you can check other services as well.
$ ansible -i my_hosts all -l "firewall-hosts" -a "systemctl status firewalld.service"
$ ansible -i my_hosts all -l "firewall-hosts" -a "systemctl stop firewalld.service"
$ ansible -i my_hosts all -l "firewall-hosts" -a "systemctl disabled firewalld.service"$ ansible -i my_hosts all -l "firewall-hosts" -a "systemctl is-enabled firewalld.service"
$ ansible -i my_hosts all -l "firewall-hosts" -a "systemctl is-active firewalld.service"
$ ansible -i my_hosts all -l "firewall-hosts" -a "systemctl stop firewalld.service"
$ ansible -i my_hosts all -l "firewall-hosts" -a "systemctl disabled firewalld.service"
No comments:
Post a Comment