Skip to content

Instantly share code, notes, and snippets.

@privateip
Created July 18, 2016 02:38
Show Gist options
  • Save privateip/a83443dfe301255fa4648933e8ab7f61 to your computer and use it in GitHub Desktop.
Save privateip/a83443dfe301255fa4648933e8ab7f61 to your computer and use it in GitHub Desktop.
---
- name: configure vty settings
hosts: ios
connection: local
gather_facts: no
tasks:
- name: set vty settings
ios_config:
lines:
- exec-timeout 720 0
- password cisco
- login local
- transport input telnet ssh
parents: line vty 0 4
host: "{{ inventory_hostname }}"
username: cisco
password: cisco
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment