Can somebody give me a pointer for using CLI commands with Ansible-Play.
I working with a group of network devices and I need to issue the same command to all of them to find a specific IP address in the arp table. I would like to do something like the following:
Ansible-play myplay myip=10.10.0.1
Use that myip address in the Ansible-play as a jinja2 variable in my role.
- name: run show arp on remote devices
eos_command:
commands: show arp {{ myip }}
provider "{{ cli }}"