Skip to content

Commit 5d5ebb5

Browse files
PMM-7: Install community docker plugin in PMM QA Framework (#146)
* PMM-7: Install community docker plugin * PMM-7: Install community docker plugin * PMM-7: Changes for minio * PMM-7: Changes for minio * PMM-7: Changes for minio * PMM-7: Changes for minio * PMM-7: Changes for minio * PMM-7: Changes for minio * PMM-7: Changes for minio * PMM-7: Changes for minio * PMM-7: Changes for minio * PMM-7: Code cleanup * PMM-7: Code cleanup
1 parent 514d30d commit 5d5ebb5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pmm_qa/scripts/run_ansible_playbook.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
import os
22
import ansible_runner
33
import sys
4+
import subprocess
45

56
def run_ansible_playbook(playbook_filename, env_vars, args):
67
# Get Script Dir
78
script_path = os.path.abspath(sys.argv[0])
89
script_dir = os.path.dirname(script_path)
910
playbook_path = script_dir + "/" + playbook_filename
1011
verbosity_level = 1
11-
12+
# Install community docker plugin for ansible
13+
subprocess.run(["ansible-galaxy", "collection", "install", "community.docker"], capture_output=True, text=True)
1214
if args.verbosity_level is not None:
1315
verbosity_level = int(args.verbosity_level)
1416

0 commit comments

Comments
 (0)