Lab 3 - Ansible Commands & Modules """""""""""""""""""""""""""""""""" Mandatory ========= Try out ansible-doc ------------------- * print out all available modules * check the docu of the module ``command`` * check the docu of the modules ``yum`` and ``apt`` Ping all hosts -------------- * Run the ansible module "ping" on all hosts in your inventory * Run the ansible module "ping" only on ``web1..lab`` Run the command modul --------------------- * Run ``uname -a`` on all servers via ``command`` module * Run ``whoami`` on all servers via ``command`` module * Run ``df -h`` on all servers via ``command`` module * Run ``cat /etc/redhat-release`` only on ``web2..lab`` * Run ``cat /etc/redhat-release`` only on ``web1..lab`` .. hint:: The last task will fail.