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>
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
Post a Comment