Giter VIP home page Giter VIP logo

ansible-docker's Introduction

ansible-docker

Ansible role to install Docker Engine via the official Docker apt repositories for Debian-family distributions. This role assumes a 64-bit installation and a kernel supported by Docker. See the Docker install guides for Debian or Ubuntu for more.

Requirements

  • Ansible 2.0+
  • Debian-family distribution (current stable/LTS or newer)

Dependencies

###apt The apt role is used to add the official Docker repo along with signing keys.

Variables

See defaults/main.yml for default values.

docker

These variables should be set either as a dependency in meta/main.yml for your role, or as a part of your include statement. See below for examples.

Variable Type Description
docker_pkg List List of apt packages to be installed

Testing

This role includes tests which are run via Docker along with a Makefile to simplify the testing process.

External role dependencies are defined in a requirements file which is used by the ansible-galaxy command line tool. Roles are copied into tests/roles which is configured in ansible.cfg as a search path.

A small shell script is used to resolve role dependencies and run Ansible within the container.

Note that because this role installs Docker within a Docker container, privledged mode is required by the top level container. This may have security implications depending on your setup.

Starting a test container:

  • make test

Cleaning up:

  • make clean

Examples

Add to your playbook as a role include:

---
- hosts: docker-hosts
  roles:
    - ansible-docker

Development

Pull requests are very welcome! Make sure your patches are well tested. Ideally create a topic branch for every separate change you make. For example:

  1. Fork the repo
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Author Information

Created and maintained by Chris Spicer ([email protected]).

License

MIT License (see LICENSE)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.