-
Notifications
You must be signed in to change notification settings - Fork 0
/
eve-router-setup.yml
39 lines (39 loc) · 1.06 KB
/
eve-router-setup.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
- name: Configure new EVE-NG router
hosts: new_devices:cisco
gather_facts: no
tasks:
- debug:
msg: '{{ansible_host}} {{ansible_port}}'
- name: Setup domain information
telnet:
port: '{{ansible_port}}'
prompts:
- "[>|#]"
command:
- term length 0
- en
- conf t
- hostname {{inventory_hostname}}
- ip domain local
- crypto key generate rsa modulus 1024
- username kbreit password cisco
- enable password cisco
- line vty 0 4
- transport input ssh
- exit
- wr me
# - name: Hard return
# telnet:
# port: '{{ansible_port}}'
# command:
# - "\r"
# - name: Stop configuration setup
# telnet:
# port: '{{ansible_port}}'
# # login_prompt: 'Would you like to enter the initial configuration dialog? [yes/no]'
# # prompts:
# # - "[:]"
# command:
# - "\r"
# - no