Skip to content
Snippets Groups Projects
Commit 6d1d0033 authored by Dónal Cunningham's avatar Dónal Cunningham
Browse files

DC - updated README to reflect multi-OS changes

parent 12b2a0aa
No related branches found
No related tags found
No related merge requests found
# 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.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment