Thursday, March 18, 2021

Check if firewall is not running and disabled

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

Git branch show detached HEAD

  Git branch show detached HEAD 1. List your branch $ git branch * (HEAD detached at f219e03)   00 2. Run re-set hard $ git reset --hard 3. ...