linuxinstaller/libreticmenu/AnsibleActions.py

8 lines
276 B
Python
Raw Normal View History

2024-09-30 19:32:52 +02:00
import subprocess
2024-10-08 12:19:49 +02:00
def runAnsiblePlaybook(config, key):
subprocess.check_call(['ansible-playbook', config['ansiblemenu'][key]['playbook']], cwd=config['base_path'])
2024-09-30 19:32:52 +02:00
2024-10-08 12:19:49 +02:00
def pullAnsiblePlaybook(url, playbook):
subprocess.check_call(['ansible-pull', '-U', url, playbook])