All Projects → geerlingguy → Docker Ubuntu1804 Ansible

geerlingguy / Docker Ubuntu1804 Ansible

Licence: mit
Ubuntu 18.04 LTS (Bionic) Docker container for Ansible playbook and role testing.

Projects that are alternatives of or similar to Docker Ubuntu1804 Ansible

Hub Tool
🧪 Docker Hub experimental CLI tool
Stars: ✭ 147 (+140.98%)
Mutual labels:  image, container, hub
Docker Centos7 Ansible
CentOS 7 Docker container for Ansible playbook and role testing.
Stars: ✭ 72 (+18.03%)
Mutual labels:  ansible, container, hub
Packer Ubuntu 1404
DEPRECATED - Packer Example - Ubuntu 14.04 Vagrant Box using Ansible provisioner
Stars: ✭ 81 (+32.79%)
Mutual labels:  ansible, image, ubuntu
Ansible Wordpress
Ansible role to set up (multiple) wordpress installations in Debian-like systems (using wp-cli)
Stars: ✭ 58 (-4.92%)
Mutual labels:  ansible, ubuntu
Ansible Role Security
Ansible Role - Security
Stars: ✭ 398 (+552.46%)
Mutual labels:  ansible, ubuntu
Docker.ubuntu
Docker role for Ansible on Ubuntu 14.04+
Stars: ✭ 457 (+649.18%)
Mutual labels:  ansible, ubuntu
singularityhub.github.io
Container tools for scientific computing! Docs at https://singularityhub.github.io/singularityhub-docs
Stars: ✭ 68 (+11.48%)
Mutual labels:  container, hub
Sysadmintools
Acorn's Server, Workstation, & VM Cluster Automation & Documentation
Stars: ✭ 7 (-88.52%)
Mutual labels:  ansible, ubuntu
Debops
DebOps - Your Debian-based data center in a box
Stars: ✭ 734 (+1103.28%)
Mutual labels:  ansible, ubuntu
Ansible Role Docker
Ansible Role - Docker
Stars: ✭ 845 (+1285.25%)
Mutual labels:  ansible, ubuntu
Ansible Jupyterhub
Ansible role to setup jupyterhub server (deprecated)
Stars: ✭ 14 (-77.05%)
Mutual labels:  ansible, ubuntu
Ansible Role Firewall
Ansible Role - iptables Firewall configuration.
Stars: ✭ 343 (+462.3%)
Mutual labels:  ansible, ubuntu
Ansible Role Apache
Ansible Role - Apache 2.x.
Stars: ✭ 341 (+459.02%)
Mutual labels:  ansible, ubuntu
Packer Boxes
Jeff Geerling's Packer build configurations for Vagrant boxes.
Stars: ✭ 495 (+711.48%)
Mutual labels:  ansible, ubuntu
Awx Container
Ansible Container project that manages the lifecycle of AWX on Docker.
Stars: ✭ 294 (+381.97%)
Mutual labels:  ansible, image
Switch Apt Mirror.ansible.role
switch apt mirror for Debian & Ubuntu with Ansible role.
Stars: ✭ 5 (-91.8%)
Mutual labels:  ansible, ubuntu
Metabase Playbook
Ansible playbook for setup metabase env
Stars: ✭ 13 (-78.69%)
Mutual labels:  ansible, ubuntu
Ansible Keepalived
Ansible role to set up keepalived in Debian-like systems
Stars: ✭ 21 (-65.57%)
Mutual labels:  ansible, ubuntu
Ansible Wsl
Provisioning your Windows from inside of WSL by Ansible
Stars: ✭ 34 (-44.26%)
Mutual labels:  ansible, ubuntu
Ansible Role Hardening
Ansible role to apply a security baseline. Systemd edition.
Stars: ✭ 188 (+208.2%)
Mutual labels:  ansible, ubuntu

Ubuntu 18.04 LTS (Bionic) Ansible Test Image

CI Docker pulls

Ubuntu 18.04 LTS (Bionic) Docker container for Ansible playbook and role testing.

Tags

  • latest: Latest stable version of Ansible.
  • python2: Deprecated.
  • testing: Deprecated.

The latest tag is a lightweight image for basic validation of Ansible playbooks.

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 ubuntu1804-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-ubuntu1804-ansible:latest (or use the image you built earlier, e.g. ubuntu1804-ansible:latest).
  3. Run a container from the image: docker run --detach --privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro geerlingguy/docker-ubuntu1804-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 2018 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].