View Only
last person joined: 3 days ago 

Expand all | Collapse all

Ansible Generate Configs Locally

This thread has been viewed 28 times
  • 1.  Ansible Generate Configs Locally

    Posted Jun 17, 2021 01:18 PM

    In this scenario, there is a production switch which I cannot configure directly without going through change management.
    I've seen Ansible generate configs without applying them directly to the Network Equipment for other products.
    This would be useful to identify & review the proposed change before actually applying it to the device.

    Is there a way with the Ansible Collections for AOSCX or AOS_Switch to generate the configuration change locally on the Ansible server without it being applied directly to the network equipment?

    Please let me know if this is possible with the given collections or if there are other Ansible collections I could use for this.

    Thank you,
    Kevin Rose

    Kevin Rose

  • 2.  RE: Ansible Generate Configs Locally

    Posted Jun 29, 2021 03:25 PM
    To create a local file using a Jinja2 template you'll want to use Ansible's `template` module! Documentation can be found here and example use case of it used in Day 0 provisioning can be found here.

    Hope this helps!​

    Tiffany Chiapuzio-Wong