ansible-role-frrouting/templates/frr.conf.j2
Dmitriy Rabotyagov 32dc34c70b Make role INJECT_FACTS_AS_VARS friendly
Enabled INJECT_FACTS_AS_VARS[1] (which is default behaviour) has very
negative impact on Ansible performance [2].

In order to be able to reduce amount of variables and performance
penalty, role is being adopted to be used with no injected facts

[1] https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_vars_facts.html#ansible-facts
[2] https://github.com/ansible/ansible/issues/73654

Change-Id: I71a326964be7597ebaad0183c3a774321885c6f5
2024-02-23 17:34:50 +01:00

17 lines
241 B
Django/Jinja

!
! Zebra configuration
!
frr defaults traditional
!
hostname {{ ansible_facts['hostname'] }}
log syslog informational
!
! staticd config
{{ frr_staticd_routes | join('\n') }}
!
!
! bgpd config
{{ frr_bgpd_config | join('\n') }}
!
line vty
!