Giter Site home page Giter Site logo

aisbergg / ansible-role-docker Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 34 KB

:wrench: An Ansible role to install and configure Docker and Docker Compose on Debian, CentOS and Arch Linux systems.

License: MIT License

Jinja 100.00%
ansible ansible-role docker docker-compose

ansible-role-docker's Introduction

Ansible Role: aisbergg.docker

This Ansible role installs and configures Docker and Docker Compose on Debian, CentOS and Arch Linux systems.

Requirements

None.

Role Variables

Variable Default Comments
docker_centos_repo_url https://download.docker.com/linux
/centos/$releasever/$basearch/stable
RPM repository URL to be used for installation
docker_debian_repo_url https://download.docker.com/linux/
{{ ansible_distribution | lower }}
APT repository URL to be used for installation
docker_install_docker_compose true Whether or not to install Docker Compose
docker_centos_compose_url https://github.com/docker/compose
/releases/download/v{{ docker_centos_compose_version }}/docker-compose-Linux-x86_64
URL for downloading Docker Compose on CentOS systems.
docker_centos_compose_sha256_checksum xxxx SHA256 checksum to validate the download of Docker Compose.
docker_centos_compose_version 1.29.1 Docker Compose version to be installed on CentOS systems
docker_install_python_docker true Whether or not to install Docker Python library
docker_service_enabled true Service enabled on boot
docker_service_state started Service run state (started, stopped, restarted)
docker_service_restart_on_change true Restart Docker daemon service on configuration changes.
docker_config {} Configuration of the Docker daemon (key-value pairs). See https://docs.docker.com/engine/reference/commandline/dockerd/#daemon-configuration-file
docker_users [] List of users to be added to the Docker group (allow users to control Docker)

Example Playbook

- hosts: all
  vars:
    docker_service_enabled: true
    docker_service_state: started
    docker_service_restart_on_change: true
    docker_users:
      - foo
    docker_config:
      data-root: /var/lib/docker
      icc: false
      iptables: true
      ipv6: false
      live-restore: false
      log-driver: json-file
      log-opts:
        max-file: 2
        max-size: 10m
      storage-driver: overlay2
  roles:
    - aisbergg.docker

License

MIT

Author Information

Andre Lehmann ([email protected])

ansible-role-docker's People

Contributors

aisbergg avatar

Watchers

 avatar  avatar

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.