Check disk free with ansible

To check the disk free with ansible you can run the following command

To get all the hosts execute:

# ansible -m command -a "df -h" all

To get some group the hosts

 ansible -m command -a "df -h" -i <hosts file>


Comments

Popular posts from this blog

How to clean all the foreman task and locked task

How to restrict users to send only mail to the local domain in Zimbra

Hardening Script