Table of Contents

Ansible Cisco - Acessando os equipamentos por FQDN

Criando entradas no arquivo /etc/hosts

# vim /etc/hosts +$
172.16.100.3    sw1.geanmartins.com.br  sw1
172.16.100.4    sw2.geanmartins.com.br  sw2
172.16.100.5    sw3.geanmartins.com.br  sw3
172.16.100.6    sw4.geanmartins.com.br  sw4
172.16.100.7    ro1.geanmartins.com.br  ro1
172.16.100.8    ro2.geanmartins.com.br  ro2

Alterando o inventário

[switchs]
sw1
sw2
sw3
sw4
 
[routers]
ro1
ro2
 
[all:vars]
ansible_connection=ansible.netcommon.network_cli
ansible_network_os=cisco.ios.ios
ansible_become=yes
ansible_become_method=enable
ansible_become_password=cisco