All Projects → jmal98 → Ansiblecm

jmal98 / Ansiblecm

Licence: apache-2.0
A Docker based Ansible control machine for running playbooks in a consistent environment.

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to Ansiblecm

Terrible
An Ansible playbook that apply the principle of the Infrastructure as Code on a QEMU/KVM environment.
Stars: ✭ 161 (+519.23%)
Mutual labels:  automation, ansible, playbook
Mac Dev Playbook
Mac setup and configuration via Ansible.
Stars: ✭ 4,202 (+16061.54%)
Mutual labels:  automation, ansible, playbook
Rundeck
Enable Self-Service Operations: Give specific users access to your existing tools, services, and scripts
Stars: ✭ 4,426 (+16923.08%)
Mutual labels:  automation, ansible, deployment
Rocket.chat.ansible
Deploy Rocket.Chat with Ansible!
Stars: ✭ 80 (+207.69%)
Mutual labels:  automation, ansible, playbook
Awx Ha Instancegroup
Build AWX clustering on Docker Standalone Installation
Stars: ✭ 106 (+307.69%)
Mutual labels:  automation, ansible, playbook
Openbsd Cookbooks
Setup environment in OpenBSD using Ansible playbook
Stars: ✭ 80 (+207.69%)
Mutual labels:  automation, ansible, playbook
Rollback
Ansible role to rollback scripting applications like PHP, Python, Ruby, etc. in a capistrano style
Stars: ✭ 230 (+784.62%)
Mutual labels:  ansible, playbook, deployment
Rhcsa8env
This is a RHCSA8 study environment built with Vagrant/Ansible
Stars: ✭ 108 (+315.38%)
Mutual labels:  automation, ansible, deployment
Ansible Rails
Ruby on Rails deployment using Ansible - with Lets Encrypt, Sidekiq, PostgreSQL, nginx & puma
Stars: ✭ 199 (+665.38%)
Mutual labels:  automation, ansible, deployment
Bastille
Bastille is an open-source system for automating deployment and management of containerized applications on FreeBSD.
Stars: ✭ 377 (+1350%)
Mutual labels:  automation, deployment
Ansible For Kubernetes
Ansible and Kubernetes examples from Ansible for Kubernetes Book
Stars: ✭ 389 (+1396.15%)
Mutual labels:  automation, ansible
Ansible Role Php
Ansible Role - PHP
Stars: ✭ 396 (+1423.08%)
Mutual labels:  ansible, playbook
Swarmlet
A self-hosted, open-source Platform as a Service that enables easy swarm deployments, load balancing, automatic SSL, metrics, analytics and more.
Stars: ✭ 373 (+1334.62%)
Mutual labels:  ansible, deployment
Gradle Play Publisher
GPP is Android's unofficial release automation Gradle Plugin. It can do anything from building, uploading, and then promoting your App Bundle or APK to publishing app listings and other metadata.
Stars: ✭ 3,690 (+14092.31%)
Mutual labels:  automation, deployment
Ansible Rails
Ansible: Ruby on Rails Server
Stars: ✭ 317 (+1119.23%)
Mutual labels:  ansible, deployment
Gaia
Build powerful pipelines in any programming language.
Stars: ✭ 4,534 (+17338.46%)
Mutual labels:  automation, deployment
Ansible For Devops
Ansible for DevOps examples.
Stars: ✭ 5,265 (+20150%)
Mutual labels:  ansible, playbook
St2
StackStorm (aka "IFTTT for Ops") is event-driven automation for auto-remediation, security responses, troubleshooting, deployments, and more. Includes rules engine, workflow, 160 integration packs with 6000+ actions (see https://exchange.stackstorm.org) and ChatOps. Installer at https://docs.stackstorm.com/install/index.html. Questions? https://…
Stars: ✭ 4,600 (+17592.31%)
Mutual labels:  automation, deployment
Polemarch
Simple WEB gui for infrastructure management by ansible playbooks or modules. This is only mirror with bins in releases.
Stars: ✭ 530 (+1938.46%)
Mutual labels:  automation, ansible
Ansible Best Practises
A project structure that outlines some best practises of how to use ansible
Stars: ✭ 735 (+2726.92%)
Mutual labels:  automation, ansible

Ansible Control Machine (Docker'ized)

A Docker based Ansible control machine useful for running playbooks with a consistent environment. Other similar images look to build the software items into a Docker image using Ansible, or automate the creation of a control machine, but what I wanted is to be able to run Ansible playbooks consistently using an immutable environment.

With Ansible, a typical use case is to have your CI server (Jenkins, Bamboo, etc...) orchestrate a set of playbooks to perform tasks (provision cloud resources, install packages, configure applications, etc...). The CI environments evolve over time often introducing dependencies which conflict with those required to run the desired version of Ansible and supporting modules which is a pain to manage IMO. This Docker image allows you to run a fixed version of Ansible, with dependencies for some of the popular modules (ec2, route53, archive, yum, apt, etc...) in an environment which will not change as the Ansible control machine's environment becomes immutable.

Having the Ansible control machine's environment packaged up in a Docker container, the ability to provision resources using it dynamically becomes possible using a wide variety of configurations. For example, you can run this control machine via:

  • Jenkins slaves configured with nothing more than Docker
  • As tasks on Amazon Elastic Compute Service (ECS)
  • As short lived pods on Kubernetes
  • On your laptop without pre-installing Ansible

Basically, this control machine can be run anywhere you can run a Docker container.

Build

docker build --tag ansiblecm:2.10.1 .

Usage

Docker images are available on Docker Hub.

By default, this control machine will assume the execution of an Ansible playbook. To specify which playbook to run, simply map the playbook into the container like so:

docker run -it --rm -v <absolute path to playbook>:/tmp/playbook:Z jmal98/ansiblecm:2.10.1 <playbook arguments>

For example, the following will run the playbook in the current directory.

docker run -it --rm -v $PWD:/tmp/playbook:Z jmal98/ansiblecm:2.10.1 site.yml -i inventory/hosts

This control machine is also useful for running Ansible "one liners" which do not require a playbook. The example below runs the setup module on the web machines as specified in the inventory file.

docker run -it --rm --entrypoint ansible jmal98/ansiblecm:2.10.1 web -m setup -i inventory

Demo

A demo of how to use this control machine locally is provided. For details on the setup and execution of the demo, see DEMO.

Versions

The versions of this image will closely track to the versions of Ansible. The versions of module dependencies will be fixed to compatible versions.

Contributing

Contributions are welcome.

License

Apache License 2.0, see LICENSE.

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].