feat: dont pre-template nsca server conf pw

This commit is contained in:
2024-12-22 13:38:28 +00:00
parent e5313bcf4e
commit 54c299c21e
2 changed files with 2 additions and 2 deletions

View File

@@ -16,7 +16,7 @@ def dump_config(vmList):
f.write("\n")
# dump ansible
with open("./ansible/files/nsca_server.conf", "w") as f:
with open("./ansible/templates/nsca_server.conf", "w") as f:
env = jinja2.Environment(loader=jinja2.FileSystemLoader(searchpath="./templates"))
template = env.get_template("nsca_server.conf.j2")
f.write(template.render(vmList=sorted(list(set(filter(lambda x: x.ansible, vmList)))),