Skip to content
This repository was archived by the owner on Oct 9, 2022. It is now read-only.

sbocinec/ansible-container

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible docker image builder

Automated docker image builder of all currently supported Ansible versions. Built docker images are hosted publicly in the sbocinec/ansible Docker HUB repository. The project is currently in alpha phase of development and there are multiple build & test related things to be implemented yet. Check CHANGELOG.md for news & updates.

There are currently 2 types of images being built:

  1. slim: based on the python:3.6-slim docker image
  2. alpine: based on the python:3.6-alpine docker image

The build pipeline currently automatically builds, tags and pushes docker images from all the Ansible versions specified in the ANSIBLE_VERSION file.

Usage

Quick start

  1. Prepare complete ansible playbook content including your playbooks, variables, ansible configuration file and inventory.
  2. Run the container mounting the ansible playbook directory into /ansible path inside the container and specifying the exact ansible command: docker run -it --rm -v ${PWD}/ansible:/ansible sbocinec:ansible ansible-playbook site.yml. Follow the Ansible Getting Started guide for full Ansible reference.

Other examples

  • Run specific ansible version: docker run -it --rm -v ${PWD}/ansible:/ansible sbocinec:ansible:2.7 ansible-playbook site.yml
  • Run ansible built on top of Alpine Linux image: docker run -it --rm -v ${PWD}/ansible:/ansible sbocinec:ansible:2.6-alpine ansible-playbook site.yml

Motivation

Author

Stanislav Bocinec

License

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may find a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 or in the project's LICENSE file.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

Automatic docker image builds of all currently supported Ansible versions

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published