Files
ansible-role-certificate-au…/molecule/default/prepare.yml
T
volker.raschekandCopilot a6e8555e13
Lint Markdown files / markdown-lint (push) Successful in 12s
Ansible Linter / ansible-lint (push) Successful in 2m6s
Molecule / Molecule (push) Failing after 3m50s
refactor(molecule): use docker instead of podman
The scenario now starts its containers with community.docker instead of containers.podman, because docker is the
container runtime available on the CI runner. The connection plugin, the login command and the declared collections
were adjusted accordingly and the docker SDK for python is installed in the workflow, since the module requires it.

Co-authored-by: Copilot <copilot@github.com>
2026-09-08 10:14:20 +02:00

23 lines
818 B
YAML

---
- name: Prepare
hosts: all
gather_facts: false
vars:
# The base images ship neither a python interpreter for ansible nor the tools the role shells out to.
_bootstrap: |
set -eu
if command -v pacman > /dev/null; then
pacman --sync --refresh --noconfirm ca-certificates gawk openssl python
elif command -v apt-get > /dev/null; then
apt-get update
apt-get install --yes ca-certificates gawk openssl python3
else
dnf install --assumeyes ca-certificates gawk openssl python3
fi
tasks:
# The raw command is wrapped explicitly, because the bootstrap relies on shell builtins.
- name: Bootstrap the python interpreter and the tools required by the role
ansible.builtin.raw: "/bin/sh -c {{ _bootstrap | quote }}"
changed_when: true