From d792220d1c2419e4660753e80183f4ab8c71338a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorben=20G=C3=BCnther?= Date: Sat, 19 Aug 2023 02:36:02 +0200 Subject: [PATCH] ci: Fix pipeline Install required packages in a virtual environment. --- .build.yml | 6 +++--- misc/requirements.txt | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 misc/requirements.txt diff --git a/.build.yml b/.build.yml index b1b8826..75840d3 100644 --- a/.build.yml +++ b/.build.yml @@ -4,7 +4,6 @@ packages: - ansible-lint - python-hvac - python-passlib # password_hash with bcrypt - - python-pipx - terraform - yamllint secrets: @@ -37,8 +36,9 @@ tasks: mkdir -p ~/.ssh cat ansible/ssh_host_keys/* > ~/.ssh/known_hosts cat .ansible-secrets >> .buildenv - pipx install ansible-runner - echo 'export PATH="$PATH:$HOME/.local/bin"' >> ~/.buildenv + python -m venv venv + venv/bin/python -m pip install -r ansible/misc/requirements.txt + echo 'export PATH="$HOME/venv/bin:$PATH"' >> ~/.buildenv - avalon: | cd ansible python misc/run.py avalon diff --git a/misc/requirements.txt b/misc/requirements.txt new file mode 100644 index 0000000..40c8535 --- /dev/null +++ b/misc/requirements.txt @@ -0,0 +1,2 @@ +ansible-runner +requests -- 2.44.0