Skip to content

Install Docker and do some post-install tasks to prepare hosts for running Docker containers.

License

Notifications You must be signed in to change notification settings

eriklotin/ansible-role-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible role: eriklotin.docker

This role installs Docker and does some post-install tasks to prepare hosts for running Docker containers.

Install

ansible-galaxy install eriklotin.docker

or install locally:

ansible-galaxy install eriklotin.docker -p ./roles/

Variables

List of system users which will be added to docker system group.

docker_users: []

Python pip package name. If you use Python3 on your servers, then set python_pip_package to python3-pip. Default is python-pip.

python_pip_package: "python-pip"

Example playbook

- hosts: all

  vars:
    - docker_users: ["ubuntu"]

  roles:
    - role: eriklotin.docker
      become: true

Dependencies

This role uses geerlingguy.docker role to install Docker.

License

MIT. See LICENSE file.

Author

Created in 2019-02 by Erik Lotin.

About

Install Docker and do some post-install tasks to prepare hosts for running Docker containers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published