diff --git a/scripts/integration-vm.py b/scripts/integration-vm.py index 191cf60..aa96291 100644 --- a/scripts/integration-vm.py +++ b/scripts/integration-vm.py @@ -254,7 +254,7 @@ def apply(host, certs): extra += ["-e", f"@{INTEG_DIR / f}"] extra += ["-e", f"@{cert_file(certs)}"] for step in prof["applies"]: - cmd = [".venv/bin/ansible-playbook", "-i", str(RUN_DIR) + "/", + cmd = [".venv/bin/ansible-playbook", "-i", str(RUN_DIR / "hosts.yml"), f"playbooks/{step['playbook']}", "--limit", name] if step.get("tags"): cmd += ["--tags", ",".join(step["tags"])] @@ -299,7 +299,7 @@ def run_assert(host, certs): for f in prof.get("extra_vars_files", []): extra += ["-e", f"@{INTEG_DIR / f}"] extra += ["-e", f"@{cert_file(certs)}"] - cmd = [".venv/bin/ansible-playbook", "-i", str(RUN_DIR) + "/", + cmd = [".venv/bin/ansible-playbook", "-i", str(RUN_DIR / "hosts.yml"), "tests/integration/verify.yml", "--limit", name] + extra r = sh(cmd, cwd=str(REPO_ROOT), check=False) if r.returncode != 0: