Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/poeschl/molecule-test-images
Ansible Molecule Test Images
https://github.com/poeschl/molecule-test-images
ansible container-image molecule
Last synced: 4 days ago
JSON representation
Ansible Molecule Test Images
- Host: GitHub
- URL: https://github.com/poeschl/molecule-test-images
- Owner: Poeschl
- License: apache-2.0
- Created: 2023-11-30T15:52:32.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-29T08:19:47.000Z (4 months ago)
- Last Synced: 2024-11-01T08:42:14.462Z (about 2 months ago)
- Topics: ansible, container-image, molecule
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Molecule Test Images
For automated molecule tests for ansible I use this images for an easy use in my ansible projects.
## Molecule Images
### Usage
The images are build automatically from the `main` branch.
Available OSes:
* `debian`
* `ubuntu`Available facets
* `basic` - just a basic os installation with minimalistic tools
* `with_docker` - same as `basic` + docker and docker-compose install
* `with_podman` - same as `basic` + podman and podman-compose installAll combinations can be retrieved with the following way in your `molecule.yaml`.
The image has the pattern `{{ os }}-{{ facet }}` for its tags.```yaml
platforms:
- name: molecule-ubuntu
image: ghcr.io/poeschl/molecule-test-image:${MOLECULE_OS:-ubuntu}-basic
command: ${MOLECULE_DOCKER_COMMAND:-""}
privileged: true
pre_build_image: true
```### Rootless user
To test you roles and playbooks with an non-root user you can use the user `rootless` with uid `1000`.
```yaml
provisioner:
name: ansible
connection_options:
ansible_ssh_user: rootless
```