All Projects → geerlingguy → Docker Debian10 Ansible

geerlingguy / Docker Debian10 Ansible

Licence: mit
Debian 10 (Buster) Docker container for Ansible playbook and role testing.

Projects that are alternatives of or similar to Docker Debian10 Ansible

Ansible Windows Docker Springboot
Example project showing how to provision, deploy, run & orchestrate Spring Boot apps with Docker Windows Containers on Docker Windows native using Packer, Powershell, Vagrant & Ansible
Stars: ✭ 58 (+132%)
Mutual labels:  ansible, docker-container
Ansible Collection Gns3
Ansible Collection for GNS3 Server REST API using gns3fy
Stars: ✭ 19 (-24%)
Mutual labels:  ansible
Ansible Skeleton
The skeleton to create new ansible roles.
Stars: ✭ 5 (-80%)
Mutual labels:  ansible
Ansible Modules
Custom ansible modules
Stars: ✭ 17 (-32%)
Mutual labels:  ansible
Openvpn
Stars: ✭ 5 (-80%)
Mutual labels:  ansible
Ansible Jupyter.dockerfile
Building the Docker image with Ansible and Jupyter.
Stars: ✭ 17 (-32%)
Mutual labels:  ansible
Docker Openvpn
🔒 OpenVPN server in a Docker container complete with an EasyRSA PKI CA
Stars: ✭ 7,121 (+28384%)
Mutual labels:  docker-container
Docker Postgres
A docker container running PostgreSQL
Stars: ✭ 22 (-12%)
Mutual labels:  docker-container
Ansible Lxc
Ansible Connection Plugin for lxc containers (https://linuxcontainers.org/)
Stars: ✭ 18 (-28%)
Mutual labels:  ansible
Ansible Role Htpasswd
Ansible Role - htpasswd
Stars: ✭ 17 (-32%)
Mutual labels:  ansible
Rpi Dashboard Ansible
Ansible provisioning for our RPI dashboards
Stars: ✭ 16 (-36%)
Mutual labels:  ansible
Kubeasz
使用Ansible脚本安装K8S集群,介绍组件交互原理,方便直接,不受国内网络环境影响
Stars: ✭ 7,629 (+30416%)
Mutual labels:  ansible
Azure Openshift
RedHat Openshift Origin cluster on Azure
Stars: ✭ 17 (-32%)
Mutual labels:  ansible
Switch Apt Mirror.ansible.role
switch apt mirror for Debian & Ubuntu with Ansible role.
Stars: ✭ 5 (-80%)
Mutual labels:  ansible
Breeze
Deploy a Production Ready Kubernetes Cluster with graphical interface
Stars: ✭ 905 (+3520%)
Mutual labels:  ansible
Dank Selfhosted
Automated solution for hosting email, web, DNS, XMPP, and ZNC on OpenBSD.
Stars: ✭ 800 (+3100%)
Mutual labels:  ansible
Gridrouter Docker
Set up GridRouter for selenoid in docker using ansible
Stars: ✭ 16 (-36%)
Mutual labels:  ansible
Deploy Docker Swarm
Deploy scripts for docker-swarm.
Stars: ✭ 17 (-32%)
Mutual labels:  ansible
Ansible Meta Dynamic Inventory
Naming is hard. This wrapper script allows you to use set notation with dynamic host groups.
Stars: ✭ 24 (-4%)
Mutual labels:  ansible
Ansible Role Sonarqube
Ansible Role: SonarQube
Stars: ✭ 22 (-12%)
Mutual labels:  ansible

Debian 10 (Buster) Ansible Test Image

CI Docker pulls

Debian 10 (Buster) Docker container for Ansible playbook and role testing.

Tags

  • latest: Latest stable version of Ansible, with Python 3.x.

How to Build

This image is built on Docker Hub automatically any time the upstream OS container is rebuilt, and any time a commit is made or merged to the master branch. But if you need to build the image on your own locally, do the following:

  1. Install Docker.
  2. cd into this directory.
  3. Run docker build -t debian10-ansible .

Note: Switch between master and testing depending on whether you want the extra testing tools present in the resulting image.

How to Use

  1. Install Docker.
  2. Pull this image from Docker Hub: docker pull geerlingguy/docker-debian10-ansible:latest (or use the image you built earlier, e.g. debian10-ansible).
  3. Run a container from the image: docker run --detach --privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro geerlingguy/docker-debian10-ansible:latest (to test my Ansible roles, I add in a volume mounted from the current working directory with --volume=`pwd`:/etc/ansible/roles/role_under_test:ro).
  4. Use Ansible inside the container: a. docker exec --tty [container_id] env TERM=xterm ansible --version b. docker exec --tty [container_id] env TERM=xterm ansible-playbook /path/to/ansible/playbook.yml --syntax-check

Notes

I use Docker to test my Ansible roles and playbooks on multiple OSes using CI tools like Jenkins and Travis. This container allows me to test roles and playbooks using Ansible running locally inside the container.

Important Note: I use this image for testing in an isolated environment—not for production—and the settings and configuration used may not be suitable for a secure and performant production environment. Use on production servers/in the wild at your own risk!

Author

Created in 2017 by Jeff Geerling, author of Ansible for DevOps.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].