Role Detail

AdnanHodzic.docker-compose

Install and setup Docker and Docker Compose on any version of Ubuntu Linux system.
Downloads
11
Type Ansible
Minimum Ansible Version 2.0
Installation $ ansible-galaxy install AdnanHodzic.docker-compose
Tags
compose
development
docker
system
ubuntu
Last Commit
Last Imported
OS Platforms
Platform Version
Ubuntu artful
Ubuntu lucid
Ubuntu maverick
Ubuntu natty
Ubuntu oneiric
Ubuntu precise
Ubuntu quantal
Ubuntu raring
Ubuntu saucy
Ubuntu trusty
Ubuntu utopic
Ubuntu vivid
Ubuntu wily
Ubuntu xenial
Ubuntu yakkety
Ubuntu zesty
Last 10 Imports
Completed Status
SUCCESS
SUCCESS
SUCCESS
SUCCESS
SUCCESS
FAILED
FAILED

Ansible Role: Docker and Docker Compose Setup

Install and Setup Docker and Docker Compose on any Ubuntu Linux system.

This Ansible role will perform all necessary tasks to setup and run Docker and Docker Compose:

  • Install packages necessary for APT to use a repository over HTTPS.
  • Add and setup official Docker APT repositories.
  • Install packages needed for AUFS storage drivers.
  • Add user to Docker group.

This role was created as part of containerized-wordpress-project

Requirements

None.

Role Variables

If you want to change user which will be added to Docker group change contents of system_user variable (see: defaults/main.yml)

system_user: ubuntu

Dependencies

None.

Example Playbook

- hosts: servers
  remote_user: "{{ system_user }}"
  gather_facts: yes
  become: yes

  roles:
    - { role: AdnanHodzic.docker-compose-setup }

License

GPLv3

None