This Role Has Been Deprecated: Please use the version in the oasis_roles.system Ansible Collection
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.
Ansible 2.4 or higher
Currently the following variables are supported:
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
None
- hosts: docker-servers
roles:
- role: oasis_roles.docker
GPLv3
Greg Hellings [email protected]