Feat: add playbook.yml and a setup script

This commit is contained in:
2026-06-14 13:09:04 +02:00
parent 2ac76665ca
commit 79ce4f928c
3 changed files with 27 additions and 2 deletions

17
setup.py Normal file
View File

@@ -0,0 +1,17 @@
if __name__ == '__main__':
print('Running setup config for PIs')
ip = input('Enter the IP of the PI:')
user = input('Enter the user of the PI:')
with open('inventory.ini', 'r') as inventory:
content = inventory.read()
content = content.replace('{{USER}}', user)
content = content.replace('{{IP}}', ip)
with open('inventory.ini', 'w') as inventory:
inventory.write(content)
print(f'Changed inventory.ini content with: {content}')