Skip to content
Snippets Groups Projects
Commit 26fdf124 authored by Aleksandr Kurbatov's avatar Aleksandr Kurbatov
Browse files

dynamic inventory 'vars' -> 'hostvars'

parent 1717f7b2
No related branches found
No related tags found
1 merge request!150dynamic inventory 'vars' -> 'hostvars'
Pipeline #85506 passed
......@@ -60,7 +60,7 @@ def _generate_pe_inventory(pe_router_list: list[Router]) -> dict[str, Any]:
"""Generate an Ansible-compatible inventory for executing playbooks. Contains all active PE routers."""
return {
"_meta": {
"vars": {
"hostvars": {
router.router.router_fqdn: {
"lo4": str(router.router.router_lo_ipv4_address),
"lo6": str(router.router.router_lo_ipv6_address),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment