Sign inSign up

jomrr/molecule-amazonlinux

By jomrr

•Updated about 1 month ago

Amazon Linux container images for testing Ansible roles with Molecule.

Image
0

954

jomrr/molecule-amazonlinux repository overview

⁠Ansible Molecule Images for Amazon Linux

This repository contains Ansible Molecule⁠ images for Amazon Linux.

⁠Images

The images in this repository are based on amazonlinux⁠ and include systemd and Python and the according package manager and libraries, making them suitable for testing Ansible roles with Molecule⁠.

⁠Amazon Linux Versions

The repository provides images for the following Amazon Linux variants:

VersionImageTags
Amazon Linux 2023jomrr/molecule-amazonlinux2023, latest

⁠Usage

To use these images in Molecule⁠, reference them in your molecule.yml.

⁠Molecule docker driver

To use the Amazon Linux latest image with the docker driver:

platforms:
  - name: instance
    image: "jomrr/molecule-amazonlinux:latest"
    privileged: true
    pre_build_image: true
    override_command: false
    tmpfs:
      - /run
      - /tmp
    tty: true
    volumes:
      - /sys/fs/cgroup:/sys/fs/cgroup:rw
⁠Molecule podman driver

To use the Amazon Linux latest image with the podman driver:

platforms:
  - name: instance
    image: "docker.io/jomrr/molecule-amazonlinux:latest"
    pre_build_image: true
    override_command: false
    systemd: "true"

This will start a container with Amazon Linux latest and systemd as pid 1, which you can then use for testing your Ansible roles.

⁠License

These images are released under the MIT License.

⁠Author

Created and maintained by Jonas Mauer⁠.

⁠Source

Source repository: github.com/jomrr/ansible-molecule-images⁠

Tag summary

Content type

Image

Digest

sha256:1c73f10c2…

Size

88.7 MB

Last updated

about 1 month ago

docker pull jomrr/molecule-amazonlinux