From add344c9466437741603b86c6782411fca8b77ba Mon Sep 17 00:00:00 2001 From: alexanderbazhenoff Date: Sat, 6 Apr 2024 21:28:13 +0300 Subject: [PATCH] fixes debug --- .github/workflows/ansible_molecule_teststing.yml | 10 ++++++---- roles/bareos/molecule/default/molecule.yml | 2 -- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ansible_molecule_teststing.yml b/.github/workflows/ansible_molecule_teststing.yml index 48a8b52..6bf7895 100644 --- a/.github/workflows/ansible_molecule_teststing.yml +++ b/.github/workflows/ansible_molecule_teststing.yml @@ -44,6 +44,8 @@ jobs: with: virtualenvs-create: true virtualenvs-in-project: true + - name: Install other apt packages + run: apt-get install gnupg2 rsync openssh-client openssh-server -y - name: Poetry install dependecies run: | export PATH="/github/home/.local/bin:$PATH" @@ -56,16 +58,16 @@ jobs: ESC="$(printf "\033")" printf "Packages:\n%s\n \n" "$(poetry --ansi run pip list | sed -e "s/ /${ESC}[1;35m /g; s/$/${ESC}[0m/g")" sudo --version || true + poetry --ansi run ansible --version + poetry --ansi run ansible-galaxy --version - name: Molecule test shell: bash # poetry --ansi run ansible-galaxy install -r requirements.yml -vvv run: | - apt-get install gnupg2 rsync openssh-client openssh-server -y printf "[defaults]\nremote_tmp = /tmp/.ansible-\${USER}/tmp" > $HOME/.ansible.cfg cd roles/bareos - poetry --ansi run ansible --version - poetry --ansi run ansible-galaxy --version - poetry --ansi run molecule --debug test + poetry --ansi run molecule $([[ ${{ github.event.head_commit.message }} =~ .(debug) ]] && printf "--debug") \ + test env: PY_COLORS: '1' ANSIBLE_FORCE_COLOR: '1' diff --git a/roles/bareos/molecule/default/molecule.yml b/roles/bareos/molecule/default/molecule.yml index 108f390..5591444 100644 --- a/roles/bareos/molecule/default/molecule.yml +++ b/roles/bareos/molecule/default/molecule.yml @@ -111,8 +111,6 @@ provisioner: env: PY_COLORS: '1' ANSIBLE_FORCE_COLOR: '1' - ANSIBLE_LOCAL_TEMP: "${WORKSPACE:-$HOME}/.ansible/tmp" - ANSIBLE_REMOTE_TMP: /tmp inventory: host_vars: debian12-instance: