This commit is contained in:
2025-05-19 13:22:38 +02:00
commit ed67e43dd4
5 changed files with 99 additions and 0 deletions

32
README.md Normal file
View File

@@ -0,0 +1,32 @@
# Molecule Podman example
Based on [Redhat example (Blog post)](https://redhatnordicssa.github.io/test-ansible-role-molecule-podman) and [Redhat example (Repo)](https://github.com/RedHatNordicsSA/molecule-podman-blog).
## Installation
```
dnf install podman git python3
python3 -m venv venv
source venv/bin/activate
pip install molecule molecule-podman
git clone $URL_of_this_repo
```
# Setup Podman
> Only needed if not done before!
Setup UID and GID translation between container and host.
```
echo "<username>:200000:65536" >> /etc/subuid
echo "<groupname>:200000:65536" >> /etc/subgid
```
# Run test
```
molecule test # to run full test suite
molecule converge # to run Playbook under test once and w/o destroying the container
molecule login # Start and login to container
```