PLAY [A play to run the ping module] ******************************************************************************************************************************************
TASK [A task to invoke the ping module] ***************************************************************************************************************************************
ok: [testhost]
TASK [A task to print the output] *********************************************************************************************************************************************
ok: [testhost] =>
ping_results:
changed: false
failed: false
ping: pong
PLAY RECAP ********************************************************************************************************************************************************************
You will need to replace the host information to match your test/learning environment.
You will need to replace the host information to match your test/learning environment.
...
@@ -34,4 +34,4 @@ Run ``ansible-playbook -i hosts show_version_and_uptime.yaml``
...
@@ -34,4 +34,4 @@ Run ``ansible-playbook -i hosts show_version_and_uptime.yaml``
# Device specific
# Device specific
There are device-specific `show version` playbooks. JunOS in particular paginates its output - so you have to run the command through `no-more` to stop it printing `--More--` and pausing for keyboard input...which since it's hidden by Ansible will never come.
There are device-specific `show version` playbooks. JunOS in particular paginates its output - so you have to run the command through `no-more` to stop it printing `--More--` and pausing for keyboard input. Which - since the prompt is hidden by Ansible - will never come.
PLAY [Play 1 - Show the software version on an Arista switch] *****************************************************************************************************
PLAY [Play 1 - Show the software version on an Arista switch] ******************
TASK [Task 1.1 - Gather version from switches] ********************************************************************************************************************
TASK [Task 1.1 - Gather version from switch using the raw module] **************
PLAY RECAP ********************************************************************************************************************************************************
PLAY RECAP *********************************************************************