Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/havlasme/docker-debian12-systemd-ansible

Debian 12 "bookworm" based image intended for Ansible role testing using Molecule.
https://github.com/havlasme/docker-debian12-systemd-ansible

ansible molecule

Last synced: 2 months ago
JSON representation

Debian 12 "bookworm" based image intended for Ansible role testing using Molecule.

Awesome Lists containing this project

README

        

Debian 12 "bookworm" Ansible Molecule Test Image
================================================

[![CI][gitlabci-image]][gitlabci-link]
[![Apache-2.0 license][dockerhub-image]][dockerhub-link]
[![Apache-2.0 license][license-image]][license-link]

Debian 12 "bookworm" based image intended for [Ansible](https://www.ansible.com/) role testing using [Molecule](https://ansible.readthedocs.io/projects/molecule/).

This image is built automatically on each commit to the `main` branch, and published on the [Docker Hub](https://hub.docker.com/) as [`havlasme/debian12-systemd-ansible:latest`](https://hub.docker.com/r/havlasme/debian12-systemd-ansible).

How to Use
----------

To use this image in Molecule scenario, update the `platforms` section in the `molecule.yml`.

```yaml title="molecule.yml"
platforms:
- name: -debian-bookworm
image: docker.io/havlasme/debian12-systemd-ansible:latest
pre_build_image: true
command: '/lib/systemd/systemd'
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
```

How to Build
------------

To build the image locally simply run:

```shell
make build
```

To customize the image name, namespace, or version update the respective variable.

```shell
make build IMAGENAME=debian12-systemd-ansible NAMESPACE=havlasme VERSION=latest
```

License
-------

[Apache-2.0][license-link]

Author Information
------------------

Created in 2024 by [Tomáš Havlas](https://havlas.me/).

[license-image]: https://img.shields.io/badge/license-Apache2.0-blue.svg?style=flat-square
[license-link]: LICENSE

[dockerhub-image]: https://img.shields.io/docker/pulls/havlasme/debian12-systemd-ansible?style=flat-square
[dockerhub-link]: https://hub.docker.com/r/havlasme/debian12-systemd-ansible

[gitlabci-image]: https://img.shields.io/gitlab/pipeline-status/havlas.me/docker-debian12-systemd-ansible?style=flat-square
[gitlabci-link]: https://gitlab.com/havlas.me/docker-debian12-systemd-ansible/-/pipelines