Skip to content
/ ADC Public

Ansible Role for deploying Docker-CE and Compose

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.txt
Notifications You must be signed in to change notification settings

moffzilla/ADC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker and Composer Role

This Ansible role enables people to install the latest Docker and Composer on an Ubuntu-like system. It also provides a handy library function to validate that the Docker daemon is running and functional.

Requirements

This role will only work on an Ubuntu-like system.

Role Variables

# Any additional docker service options
# Example: '--dns 8.8.8.8 --dns 8.8.4.4 --userns-remap=default'
docker_additional_service_opts: ''

Examples

Install this module from Ansible Galaxy into the './roles' directory:

Use it in a playbook as follows:

- hosts: 'servers'
  roles:
    - role: 'moffzilla.docker'
      become: true
  tasks:
    - name: 'Ensure that the docker daemon is functional'
      become: true
      docker_ping:
      retries: 5
      delay: 10
      until: result|success
    - name: 'hello world'
      docker:
        name: 'helloworld'
        image: 'hello-world'
        state: 'started'

About

Ansible Role for deploying Docker-CE and Compose

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.txt

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages