From f047cc233ea843fc3f194e9cfbb83dc1d89afb90 Mon Sep 17 00:00:00 2001 From: Justus Grunow Date: Mon, 18 Nov 2024 07:17:42 -0500 Subject: [PATCH] Added .venv to workflow, added requirements back --- .gitea/workflows/ansible-deploy.yaml | 4 +++- requirements.txt | 16 ++++++++-------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/ansible-deploy.yaml b/.gitea/workflows/ansible-deploy.yaml index 6233c5d..b41fcfe 100644 --- a/.gitea/workflows/ansible-deploy.yaml +++ b/.gitea/workflows/ansible-deploy.yaml @@ -20,6 +20,8 @@ jobs: run: | apt update -y apt install python3-pip -y + python -m venv .venv + source .venv/bin/activate python3 -m pip install -r requirements.txt - name: Run playbook @@ -33,6 +35,6 @@ jobs: key: ${{secrets.SSH_PRIVATE_KEY}} vault_password: ${{secrets.VAULT_PASSWORD}} # Optional, galaxy requirements filepath - requirements: requirements.yaml + #requirements: requirements.yaml options: | --inventory ansible/inventory.yaml diff --git a/requirements.txt b/requirements.txt index 7c1e0e9..0618547 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,10 +1,10 @@ ansible==8.7.0 ansible-core==2.15.11 -#cffi==1.15.1 -#cryptography==39.0.0 -#Jinja2==3.1.2 -#MarkupSafe==2.1.1 -#packaging==23.0 -#pycparser==2.21 -#PyYAML==6.0 -#resolvelib==0.8.1 +cffi==1.15.1 +cryptography==39.0.0 +Jinja2==3.1.2 +MarkupSafe==2.1.1 +packaging==23.0 +pycparser==2.21 +PyYAML==6.0 +resolvelib==0.8.1