Giter Site home page Giter Site logo

ansible_setup_docker's Introduction

Ansible role: Ansible_setup_docker

An Ansible Role that installs Docker on Linux.

  • Install Docker (editions, channels and version pinning are all supported)
  • Install Docker Compose v2
  • Install the docker PIP package so Ansible's docker_* modules work

Supported platforms

  • Ubuntu 20.04 LTS (Focal Fossa)
  • Ubuntu 22.04 LTS (Jammy Jellyfish)
  • Debian 10 (Buster)
  • Debian 11 (Bullseye)
  • Debian 12 (Bookworm)

Quick start

What's configured by default?

The latest stable release of Docker CE and Docker Compose v2

Example playbook

---

- hosts: linux

  become: true

  pre_tasks:

    - name: Pre_tasks | Check for Python
      ansible.builtin.raw: which /usr/bin/python3
      changed_when: false
      failed_when: false
      register: check_python

    - name: Pre_tasks | Install Python
      ansible.builtin.raw: which /usr/bin/apt && apt-get -y update && apt-get install -y python3
      when: check_python.rc != 0

    - name: Pre_tasks | install lsb-release
      ansible.builtin.apt:
        name: lsb-release
        update_cache: true
        state: present


  roles:
    - ansible_setup_docker

ansible_setup_docker's People

Contributors

bydan43 avatar

Watchers

 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.