Sign inSign up

libertxyz/docker-ansible-amazonlinux2

By libertxyz

•Updated over 5 years ago

Amazon Linux2 - Ansible

Image
0

477

libertxyz/docker-ansible-amazonlinux2 repository overview

⁠Dockerfile AmazonLinux2 Ansible

Docker Automated build

CI

Build Status

⁠How to Use

⁠Local

  1. Pull this image from Docker Hub:

docker pull libertxyz/docker-ansible-amazonlinux2:latest

  1. Run a container from the image:

docker run -d --privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro --volume=`pwd`:/etc/ansible/roles/role_under_test:ro libertxyz/docker-ansible-amazonlinux2

⁠Molecule Testing

You can add the Docker image as part of Molecule

platforms:
  - name: instance
    image: libertxyz/docker-ansible-amazonlinux2:latest
    command: /sbin/init
    tmpfs:
      - /run
      - /tmp
    volumes:
      - /sys/fs/cgroup:/sys/fs/cgroup:ro
    privileged: True
provisioner:
  name: ansible
verifier:
  name: ansible

⁠Notes

This container is only intented to use to test Ansible Roles and Playbooksm not intended for production use.

⁠Author

Libert R Schmidt - 2020

Tag summary

Content type

Image

Digest

Size

181.7 MB

Last updated

over 5 years ago

docker pull libertxyz/docker-ansible-amazonlinux2