Files
cicd/create_examples.py
2025-07-20 14:53:12 +03:00

5 lines
249 B
Python

with open("inventory/group_vars/new_server.yaml", "r") as file:
with open("inventory-example/group_vars/new_server.yaml", "w") as file2:
file2.writelines((string.split(":")[0] + ": < >\n") if ":" in string else "\n" for string in file)