diff --git a/Section1/show_version/README.md b/Section1/show_version/README.md index 4c955844e443a3f60905a983a39ea617418cf2d9..6c53d04f3b8b2cafc2d117f354f669545bd42596 100644 --- a/Section1/show_version/README.md +++ b/Section1/show_version/README.md @@ -1,8 +1,26 @@ -# Show version +# Hosts -You need to update the hosts file : replace the "veos" host with one to which you can connect with ssh. +The hosts file in this directory has two hosts defined - one vEOS, one JunOS. -Run ``ansible-playbook -i hosts show_version.yaml``. +``` +[all:vars] +ansible_connection=ssh +ansible_user=zork +ansible_host=localhost + +[veos_hosts] +veos ansible_port=9022 ansible_ssh_pass=swordfish + +# +# Why different passwords? JunOS is a lot stricter. Good! +# +[junos_hosts] +vSRX ansible_port=9023 ansible_ssh_pass=Swordfish123 +``` + +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.