Skip to content

jahrik/docker-archlinux-ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 :)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published