You will need to replace the host information to match your test/learning environment.
Run ``ansible-playbook -i hosts show_version.yaml`` to try out the playbook.
# Show the full responses to a module invocation
...
...
@@ -10,11 +28,10 @@ This will show __all__ of the responses, including the bits that most people don
Run ``ansible-playbook -i hosts show_all_responses.yaml``
# Multiple lines of commands
# Multiple commands in a single task
Run ``ansible-playbook -i hosts show_version_and_uptime.yaml``
# 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 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 it's hidden by Ansible will never come.