This repository has been archived by the owner on Aug 26, 2024. It is now read-only.
Running Ansible Molecule in Fedora Silverblue (Molecule running inside a container) #345
Unanswered
kees-closed
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to use Fedora Silverblue, which is an immutable distribution and stuff like Ansible should run in containers. The
creator-ee
works great for the purpose of running Molecule, which requires a container in a container. Which thecreator-ee
image does nicely without adding too much stuff.When I run
podman run --privileged -v /home/USER/git/ansible/:/home/runner/ansible --workdir=/home/runner/ansible quay.io/ansible/creator-ee molecule converge
I get the expected output, until I hit a wall since a small subset of the collections are installed.So I created a Dockerfile to add some more collections in a container overlay. Of course there are several ways to do this.
RUN collections="community.general ansible.netcommon"; for collection in $collections; do ansible-galaxy collection install "$collection" -p /usr/share/ansible/collections/; done
/root
and then set theANSIBLE_COLLECTIONS_PATH
accordingly.Is there a better way to do this?
Beta Was this translation helpful? Give feedback.
All reactions