NEW QUESTION 17
Using the Simulation Program,perform the following tasks:
1. Use an ansible ad-hoc command, check the connectivity of your servers.
2. Use an ad-hoc ansible command, find the free space of your servers.
3. Use an ad-hoc ansible command, find out the memory usage of your servers.
4. Do an ls -l on the targets /var/log/messages file.
5. Tail the contents of the targets /var/log/messages file.
See the Explanation for complete Solution below.
Explanation
1. ansible all -m ping
2. ansible all -a “/bin/df -h”
3. ansible all-a “/usr/bin/free”
4. ansible all -a “ls -l /var/log/messages”
5. ansible local -b -a “tail /var/log/messages”