All Projects → geerlingguy → Docker Centos7 Ansible

geerlingguy / Docker Centos7 Ansible

Licence: mit
CentOS 7 Docker container for Ansible playbook and role testing.

Projects that are alternatives of or similar to Docker Centos7 Ansible

Ansible Role Security
Ansible Role - Security
Stars: ✭ 398 (+452.78%)
Mutual labels:  redhat, ansible, centos, rhel
Ansible Role Repo Epel
Ansible Role - EPEL Repository for RHEL/CentOS
Stars: ✭ 149 (+106.94%)
Mutual labels:  redhat, ansible, centos, rhel
Serverfarmer
Manage multiple servers with different operating systems, configurations, requirements etc. for many separate customers in an outsourcing model.
Stars: ✭ 122 (+69.44%)
Mutual labels:  redhat, ansible, centos, rhel
Ansible Role Packer rhel
Ansible Role - Packer RHEL/CentOS Configuration for Vagrant VirtualBox
Stars: ✭ 45 (-37.5%)
Mutual labels:  redhat, ansible, centos, rhel
Oracle Java
Ansible role to install Oracle Java 8/11 on Debian and RedHat based distributions.
Stars: ✭ 144 (+100%)
Mutual labels:  redhat, ansible, centos, centos7
Ansible Role Apache
Ansible Role - Apache 2.x.
Stars: ✭ 341 (+373.61%)
Mutual labels:  redhat, ansible, centos, rhel
Bento
Packer templates for building minimal Vagrant baseboxes for multiple platforms
Stars: ✭ 3,779 (+5148.61%)
Mutual labels:  redhat, centos, rhel
ganeti-rpm
Ganeti RPM Packaging
Stars: ✭ 23 (-68.06%)
Mutual labels:  centos, redhat, rhel
ansible-kafka
Ansible role for installing and configuring Apache Kafka on RedHat and Debian platforms.
Stars: ✭ 56 (-22.22%)
Mutual labels:  centos, redhat, rhel
Ansible Role Firewall
Ansible Role - iptables Firewall configuration.
Stars: ✭ 343 (+376.39%)
Mutual labels:  ansible, centos, rhel
devtoolset-container
Devtoolset container images based on Red Hat Software Collections, that provide a platform for building and running C and C++ applications. Users can choose between Red Hat Enterprise Linux, Fedora, and CentOS based images.
Stars: ✭ 40 (-44.44%)
Mutual labels:  centos, container, rhel
nginx-container
Nginx high-performance HTTP server and reverse proxy container images based on Red Hat Software Collections and intended for OpenShift and general usage. Users can choose between Red Hat Enterprise Linux, Fedora, and CentOS based images.
Stars: ✭ 77 (+6.94%)
Mutual labels:  centos, container, rhel
Mariadb Container
MariaDB container images based on Red Hat Software Collections and intended for OpenShift and general usage. Users can choose between Red Hat Enterprise Linux, Fedora, and CentOS based images.
Stars: ✭ 19 (-73.61%)
Mutual labels:  centos, rhel, container
nginx-conf
Nginx configuration
Stars: ✭ 18 (-75%)
Mutual labels:  centos, redhat, rhel
Kubeadm Playbook
Fully fledged (HA) Kubernetes Cluster using official kubeadm, ansible and helm. Tested on RHEL/CentOS/Ubuntu with support of http_proxy, dashboard installed, ingress controller, heapster - using official helm charts
Stars: ✭ 533 (+640.28%)
Mutual labels:  ansible, centos, rhel
RHEL7-CIS
Ansible RHEL 7 - CIS Benchmark Hardening Script
Stars: ✭ 28 (-61.11%)
Mutual labels:  centos, rhel, centos7
ansible-role-daemonize
Ansible Role - Daemonize.
Stars: ✭ 14 (-80.56%)
Mutual labels:  centos, redhat, rhel
Docker Ubuntu1804 Ansible
Ubuntu 18.04 LTS (Bionic) Docker container for Ansible playbook and role testing.
Stars: ✭ 61 (-15.28%)
Mutual labels:  ansible, container, hub
Ansible Role Docker
Ansible Role - Docker
Stars: ✭ 845 (+1073.61%)
Mutual labels:  redhat, ansible, centos
Ansible Mariadb Galera Cluster
Stars: ✭ 49 (-31.94%)
Mutual labels:  redhat, ansible, centos

CentOS 7 Ansible Test Image

Build Status Docker Automated build

CentOS 7 Docker container for Ansible playbook and role testing.

Tags

  • latest: Latest stable version of Ansible, on Python 2.7.x.
  • python2: (Deprecated) Same as latest, as of early 2020.
  • python3: Latest stable version of Ansible, but on Python 3.6.x.

The latest tag is a lightweight image for basic validation of Ansible playbooks. The testing tag also includes a comprehensive suite of Ansible and infrastructure testing tools in case you want them pre-installed.

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