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 SpringbootExample 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 Gns3Ansible Collection for GNS3 Server REST API using gns3fy
Stars: ✭ 19 (-24%)
Mutual labels: ansible
Ansible SkeletonThe skeleton to create new ansible roles.
Stars: ✭ 5 (-80%)
Mutual labels: ansible
Ansible ModulesCustom ansible modules
Stars: ✭ 17 (-32%)
Mutual labels: ansible
Openvpn Stars: ✭ 5 (-80%)
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 PostgresA docker container running PostgreSQL
Stars: ✭ 22 (-12%)
Mutual labels: docker-container
Ansible LxcAnsible Connection Plugin for lxc containers (https://linuxcontainers.org/)
Stars: ✭ 18 (-28%)
Mutual labels: ansible
Rpi Dashboard AnsibleAnsible provisioning for our RPI dashboards
Stars: ✭ 16 (-36%)
Mutual labels: ansible
Kubeasz使用Ansible脚本安装K8S集群,介绍组件交互原理,方便直接,不受国内网络环境影响
Stars: ✭ 7,629 (+30416%)
Mutual labels: ansible
Azure OpenshiftRedHat Openshift Origin cluster on Azure
Stars: ✭ 17 (-32%)
Mutual labels: ansible
BreezeDeploy a Production Ready Kubernetes Cluster with graphical interface
Stars: ✭ 905 (+3520%)
Mutual labels: ansible
Dank SelfhostedAutomated solution for hosting email, web, DNS, XMPP, and ZNC on OpenBSD.
Stars: ✭ 800 (+3100%)
Mutual labels: ansible
Gridrouter DockerSet up GridRouter for selenoid in docker using ansible
Stars: ✭ 16 (-36%)
Mutual labels: ansible
Ansible Meta Dynamic InventoryNaming is hard. This wrapper script allows you to use set notation with dynamic host groups.
Stars: ✭ 24 (-4%)
Mutual labels: ansible
Debian 10 (Buster) Ansible Test Image
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:
-
Install Docker.
-
cd
into this directory.
- 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
-
Install Docker.
- Pull this image from Docker Hub:
docker pull geerlingguy/docker-debian10-ansible:latest
(or use the image you built earlier, e.g. debian10-ansible
).
- 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
).
- 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].