2024-09-30 19:32:52 +02:00
|
|
|
import subprocess
|
|
|
|
import os
|
|
|
|
import glob
|
|
|
|
|
2024-10-06 23:44:04 +02:00
|
|
|
def runAnsiblePlaybook(config, key, branch):
|
|
|
|
subprocess.run(['ansible-playbook', config['ansiblemenu'][key]['playbook']], check=True, cwd=config['base_path'])
|
2024-09-30 19:32:52 +02:00
|
|
|
|
2024-10-07 14:05:53 +02:00
|
|
|
def pullAnsiblePlaybook(config, key, branch):
|
|
|
|
subprocess.run(['ansible-pull', config['ansiblemenu'][key]['playbook']], check=True, cwd=config['base_path'])
|