Include router config in Ansible jinja2 template #679
netfreak98
started this conversation in
Show and tell
Replies: 3 comments 1 reply
-
Very cool, thanks for sharing this use case example with us. |
Beta Was this translation helpful? Give feedback.
0 replies
-
This was hugely helpful, thanks for posting it - @netfreak98 ! |
Beta Was this translation helpful? Give feedback.
0 replies
-
@netfreak98 I suppose you are OK with your example above being included in the official docs via a MR? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Guys,
I just put a lot of effort in (better) understanding how the API and Ansible works. I would like to share some small playbook with you which downloads a rendered config and puts it into a to be rendered Jinja2 template.
This example works if you are using Juniper routers:
The only thing you now need to add to your Ansible template is:
The output will look like this:
Beta Was this translation helpful? Give feedback.
All reactions