All Projects → geerlingguy → docker-centos8-ansible

geerlingguy / docker-centos8-ansible

Licence: MIT license
CentOS 8 Docker container for Ansible playbook and role testing.

Programming Languages

Dockerfile
14818 projects

Projects that are alternatives of or similar to docker-centos8-ansible

openconnect-installer
Automatically set up an Openconnect/Anyconnect VPN server(ocserv) with Let's Encrypt with just one command in CentOS 8.
Stars: ✭ 64 (+42.22%)
Mutual labels:  centos, centos8
Linux
🐧 以“标签”形式对Linux的命令进行的梳理
Stars: ✭ 15 (-66.67%)
Mutual labels:  centos, centos8
copr-rpm-spec
My RPM specs on Copr
Stars: ✭ 17 (-62.22%)
Mutual labels:  centos
vagrant-templates
Vagrantfiles for self-contained development/test environments.
Stars: ✭ 28 (-37.78%)
Mutual labels:  centos
rackshift
RackShift 是开源的裸金属服务器管理平台,功能覆盖裸金属服务器的发现、带外管理、RAID 配置、固件更新、操作系统安装等。
Stars: ✭ 467 (+937.78%)
Mutual labels:  centos
pg dba scripts
PostgreSQL DBA scripts
Stars: ✭ 30 (-33.33%)
Mutual labels:  centos
Learning Linux
Linux 学习笔记,基于《鸟哥的 Linux 私房菜 第四版(CentOS7)》以及各种的网络资源
Stars: ✭ 16 (-64.44%)
Mutual labels:  centos
flamingo
Lightweight Cloud Instance Contextualizer
Stars: ✭ 36 (-20%)
Mutual labels:  centos
ansible-role-php-versions
Ansible Role - PHP Versions
Stars: ✭ 78 (+73.33%)
Mutual labels:  centos
kubevirt-tutorial
Demo that guides users through an end to end KubeVirt experience.
Stars: ✭ 29 (-35.56%)
Mutual labels:  centos
Nginx-builder
A tool to build deb or rpm package of required Nginx version from the source code, with the ability to connect third-party modules. Nginx parameters are set in the yaml configuration file.
Stars: ✭ 143 (+217.78%)
Mutual labels:  centos
login-shell
SSH登陆显示脚本
Stars: ✭ 166 (+268.89%)
Mutual labels:  centos
awesome-script
常用的 shell 脚本,包括 centos, Ubuntu, Mac osx, 以及 Docker, Python 等常用软件的安装, 配置, 开发环境搭建的脚本.
Stars: ✭ 50 (+11.11%)
Mutual labels:  centos
first-ten-seconds-redhat-ubuntu
A bash script to help secure a new CentOS or Ubuntu server quickly and easily.
Stars: ✭ 17 (-62.22%)
Mutual labels:  centos
ansible-haproxy
Installs and configures HAProxy
Stars: ✭ 19 (-57.78%)
Mutual labels:  centos
ansible-tinc
Role to install tinc in a star/ring topology (w/ leaf/spine) (based on your variables)
Stars: ✭ 15 (-66.67%)
Mutual labels:  centos
ipv6-dhclient-script
IPv6 w/ dhclient configuration script (Debian/RedHat-based distros)
Stars: ✭ 68 (+51.11%)
Mutual labels:  centos
ungoogled-chromium-fedora
RPM build for ungoogled-chromium
Stars: ✭ 24 (-46.67%)
Mutual labels:  centos
ansible-role-redmine
Ansible Role To Install Redmine
Stars: ✭ 17 (-62.22%)
Mutual labels:  centos
cis-benchmark-centOS-8
Auditing Script based on CIS-BENCHMARK CENTOS 8
Stars: ✭ 34 (-24.44%)
Mutual labels:  centos8

CentOS 8 Ansible Test Image

CI Docker pulls

CentOS 8 Docker container for Ansible playbook and role testing.

Tags

  • latest: Latest stable version of Ansible.

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