godleon.docker
Role Name
godleon.docker
Requirements
Software
- Python2.7
To install Python 2.7, run:
sudo apt-get update && sudo apt-get -y install python2.7
Role Variables
Here are the variables you can use with this role, along with a short description:
docker:
# Specify the Docker version (e.g. 17.03.2~ce-0~ubuntu-xenial). If you want the latest version, leave this out.
version: "latest"
# Specify the users (default is the ID of the user running the Ansible provision) who can run Docker commands without using sudo.
# Leave this empty for root-only access.
users:
- ubuntu
This role can also install the latest version of Docker Compose. If you want it installed, set the variables like this:
docker:
compose:
install: true
registry_mirror: "YOUR_REGISTRY_PROXY_URL"
Dependencies
None
Example Playbook
Here's an example of how to use this role (with variables provided as needed):
- hosts: servers
roles:
- { role: godleon.docker }
License
MIT
Author Information
Leon Tseng
Installa
ansible-galaxy install godleon.docker
Licenza
mit
Download
2k
Proprietario