- name: cisco_description_ssh_certification
set_fact:
cisco_verification:
host: "{{cisco_host_ip}}"
username: "{{ssh_username}}"
password: "{{ssh_password}}"
authorize: "{{enable_open}}"
auth_pass: "{{enable_password}}"
- name: config e0/0
ios_config:
provider: "{{cisco_verification}}"
parents: interface Ethernet 0/0
lines:
- ip addr 192.168.1.254 255.255.255.0
- no shut
- name: config e0/1
ios_config:
provider: "{{cisco_verification}}"
parents: interface Ethernet 0/1
lines:
- ip addr 192.168.2.254 255.255.255.0
- no shut
- name: show ip interface
ios_command:
provider: "{{cisco_verification}}"
commands: show ip interface brief
register: show_ip_log
- name: show_ip_log
debug:
var: show_ip_log.stdout_lines
with_items: show_ip_log.results