Skip to content
Snippets Groups Projects
Commit c99312a5 authored by Barta Máté Zsombor's avatar Barta Máté Zsombor :speech_balloon:
Browse files

First plays

parent 12cae74a
No related branches found
No related tags found
No related merge requests found
[routers]
router1 int_ip=10.10.20.100
[routers:vars]
ansible_become=yes
ansible_become_method=enable
ansible_network_os=cisco.ios.ios
\ No newline at end of file
---
- name: Test
hosts: routers
gather_facts: no
connection: network_cli
tasks:
- name: Show int info
cisco.ios.ios_command:
commands: show ip route vrf Mgmt-intf
register: interfaces_info
- name: Print output
copy:
content: "{{interfaces_info.stdout[0]}}"
dest: ~/onlab/{{inventory_hostname}}.txt
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment