Arch Linux Docker container for Ansible playbook and role testing.
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 .
docker exec -it jahrik/docker-archlinux-ansible bash
---
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
Inspired by Jeff Geerling I copy pasted his ubuntu 20.04 container and went from there :)