Skip to content

Latest commit

 

History

History
49 lines (36 loc) · 1.48 KB

README.md

File metadata and controls

49 lines (36 loc) · 1.48 KB

Arch Linux Ansible Test Image

Build Docker pulls

Arch Linux Docker container for Ansible playbook and role testing.

Build

The github workflow in this repo will build this image nightly, but if you need to build it locally, you can do so.

docker build -t docker-archlinux-ansible .

Usage

docker exec -it jahrik/docker-archlinux-ansible bash

Example molecule.yml

---
dependency:
  name: galaxy
driver:
  name: docker
platforms:
  - name: arch
    image: jahrik/docker-archlinux-ansible
    pre_build_image: true
provisioner:
  name: ansible
verifier:
  name: ansible

Has user "ansible" with password-less sudo access for testing Ansible roles as a non root user. Adjust provisioner in molecule.yml.

platforms:
  - name: arch
    image: jahrik/docker-archlinux-ansible
    pre_build_image: true
provisioner:
  name: ansible
  inventory:
    host_vars:
      arch:
        ansible_user: ansible

Notes

Inspired by Jeff Geerling I copy pasted his ubuntu 20.04 container and went from there :)