forked from evolix/ansible-roles
Patrick Marchand
0413f93852
Docker is very strict with it's json format and doesnt seem to allow any surprise new lines or extra commas after the last option before the closing }. Since this is a dynamically constructed file, we dont know what the last option will be. By putting the commas at the start of the line and removing all newspace, we remove the problem, at the expense of a less readable jinja template. |
||
---|---|---|
.. | ||
defaults | ||
files | ||
handlers | ||
tasks | ||
templates | ||
README.md |
docker-host
- Author: Gabriel Périard-Tremblay gperiardtremblay@evolix.ca
- Date: August 2016
What docker-host Affects
This playbook will install a docker-engine on the target host.
Role Variables
These variables are needed when the docker-engine needs to be exposed.
- docker_remote_access_enabled: True
- docker_daemon_port: 2376
- docker_daemon_listening_ip: 0.0.0.0
When the docker-engine is reachable from another host, it's important to configure TLS. Those are the basic settings for TLS and it should not be modified.
- docker_tls_enabled: True
- docker_tls_path: /home/docker/tls
- docker_tls_ca: ca/ca.pem
- docker_tls_ca_key: ca/ca-key.pem
- docker_tls_cert: server/cert.pem
- docker_tls_key: server/key.pem
- docker_tls_csr: server/server.csr
Example
$ ansible-playbook -i inventory docker-host.yml
License
GPLv3