oasis_roles.docker

This Role Has Been Deprecated: Please use the version in the oasis_roles.system Ansible Collection

Build Status

Docker

Installs the Docker service on a host. Additionally, it configures the "docker" system user group. When the Docker daemon detects a group named "docker" then it allows any user in that group access, instead of limiting access to only the root user.

Because this configures a Docker group, consider carefully if it matches the security requirements of your own deployment plans.

Requirements

Ansible 2.4 or higher

Role Variables

Currently the following variables are supported:

General

  • docker_access_users - A list of users ought to have access to the Docker daemon. Defaults to only the login user for this role. Users in this group will not require sudo access in order to use the Docker service.
  • docker_become - Default: true. Whether to use the Ansible "become" functionality to escalate privileges.
  • docker_become_user - Default: root. User to become when performing sysadmin tasks

Dependencies

None

Example Playbook

- hosts: docker-servers
  roles:
    - role: oasis_roles.docker

License

GPLv3

Author Information

Greg Hellings greg.hellings@gmail.com

About

Installs and enables the Docker package. Also configures users with access to the service, the login user by default.

Install
ansible-galaxy install oasis_roles.docker
GitHub repository
License
gpl-3.0
Downloads
108