This repository was 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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to use Fedora Silverblue, which is an immutable distribution and stuff like Ansible should run in containers. The
creator-eeworks great for the purpose of running Molecule, which requires a container in a container. Which thecreator-eeimage 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 convergeI 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/rootand then set theANSIBLE_COLLECTIONS_PATHaccordingly.Is there a better way to do this?
Beta Was this translation helpful? Give feedback.
All reactions