Friday, March 22, 2019

Ansible YAML vs Python

Hi guys,

I've recently started playing around with basic network automation. From what I've read we use Ansible as a script runner (veeeryyy simplified) and the Ansible itself uses the YAML as the command execution language.

I've also read about the Netmiko which can use Python directly. So how about using Python with the Ansible or using YAML to refer to Python scripts. Let say I wanted to build the script that changes the access lists based on the Vlan interfaces that are on the device - I would try to use the 'if then' conditions. Does YAML support such conditions or do I need to call Python script within YAML?



No comments:

Post a Comment