From 8530965f4660f9f170b45cb6342aa816a79fb0b3 Mon Sep 17 00:00:00 2001 From: hogweed1 Date: Sun, 23 Nov 2025 01:39:47 +1000 Subject: [PATCH] trying to fix ansible pythons --- .gitea/workflows/act.yaml | 2 +- sourceme.sh | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 sourceme.sh diff --git a/.gitea/workflows/act.yaml b/.gitea/workflows/act.yaml index ddc004a..1cc6763 100644 --- a/.gitea/workflows/act.yaml +++ b/.gitea/workflows/act.yaml @@ -26,8 +26,8 @@ jobs: #source $GITHUB_ENV - name: common-setup-just-created run: | - source /root/.bashrc cd /usr/share/ansible-repo/ + source sourceme.sh git pull python3 --version shell: bash diff --git a/sourceme.sh b/sourceme.sh new file mode 100644 index 0000000..fc65848 --- /dev/null +++ b/sourceme.sh @@ -0,0 +1,6 @@ +export PYENV_ROOT="$HOME/.pyenv" +export PATH="$PYENV_ROOT/bin:$PATH" + +cd /usr/share/ansible-repo +eval "$(/root/.pyenv/bin/pyenv init --path)" +eval "$(/root/.pyenv/bin/pyenv virtualenv-init -)" \ No newline at end of file