EXOS & Ansible

  • 0
  • 1
  • Question
  • Updated 3 months ago
  • Answered
  • (Edited)
Hi, I am wondering if anyone has been able to setup Ansible for EXOS switches. If so, can you provide a sample ansible-playbook configuration?

Thanks
Photo of GONÇALO NUNO CONTENTE PIMENTEL DA SILVA REIS

Posted 8 months ago

  • 0
  • 1
Photo of Lindsay Hill

Lindsay Hill, Employee

  • 442 Points 250 badge 2x thumb
To use Ansible with network devices, you need modules that work with that device. There are no EXOS Ansible modules in Ansible GA yet. A user has started a pull request to get some modules for EXOS added - see https://github.com/ansible/ansible/pull/37775.

YOu could also look at this repo: https://github.com/pavelrn/NetManage - they wrote custom modules that use perl + the XML API 
Photo of Lindsay Hill

Lindsay Hill, Employee

  • 442 Points 250 badge 2x thumb
Note - that exos_command module has been merged. You can use the devel branch of Ansible to use that today (install it from Github), or wait until Ansible 2.6 goes GA (ETA late June 2018)
Photo of Lindsay Hill

Lindsay Hill, Employee

  • 442 Points 250 badge 2x thumb
Ansible 2.6 is now GA, so you can easily use exos_command by installing the latest version of Ansible.
Photo of Lindsay Hill

Lindsay Hill, Employee

  • 442 Points 250 badge 2x thumb
exos_facts has been merged into Ansible 2.7-dev0. You can use this by running the `devel` version of Ansible. See https://github.com/ansible/ansible/pull/43210

exos_config has been submitted to Ansible. https://github.com/ansible/ansible/pull/43902 This should also make it into Ansible 2.7 GA, but you can of course use it now.