diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2023-11-14 14:20:43 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2023-11-14 14:20:43 +0100 |
commit | 03d5aada1f8064af6b3d278b51a801cac0f3a85a (patch) | |
tree | a89ae40628b92e7c8a10ca01957fd7d28ffe6746 /6/bgp.py | |
parent | 4d471f0b706733624a845143cafb6dd8add90eed (diff) | |
download | prolog-firewall-03d5aada1f8064af6b3d278b51a801cac0f3a85a.tar.gz prolog-firewall-03d5aada1f8064af6b3d278b51a801cac0f3a85a.tar.bz2 prolog-firewall-03d5aada1f8064af6b3d278b51a801cac0f3a85a.tar.xz prolog-firewall-03d5aada1f8064af6b3d278b51a801cac0f3a85a.zip |
wip
Diffstat (limited to '6/bgp.py')
-rwxr-xr-x | 6/bgp.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -7,8 +7,8 @@ import os def to_ansible(kind, hosts): for host, o in hosts.items(): print(f"host={host}") - os.makedirs(f"group_vars/{host}", exist_ok=True) - with open(f"group_vars/{host}/{kind}.yaml", "w") as f: + os.makedirs(f"host_vars/{host}", exist_ok=True) + with open(f"host_vars/{host}/{kind}.yaml", "w") as f: f.write(yaml.dump(o)) with PrologMQI() as mqi: |