Skip to content

Commit

Permalink
fixes debug
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderbazhenoff committed Apr 6, 2024
1 parent ca884d2 commit add344c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/ansible_molecule_teststing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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'
Expand Down
2 changes: 0 additions & 2 deletions roles/bareos/molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit add344c

Please sign in to comment.