ansible-roles/docker-host
Patrick Marchand 0413f93852
All checks were successful
gitea/ansible-roles/pipeline/head This commit looks good
Fix problems with docker-host daemon.json config
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.
2023-01-10 15:16:30 -05:00
..
defaults Drop trailing whitespaces 2023-01-06 09:54:51 +01:00
files docker : Removed Debian Jessie support 2022-05-10 17:39:45 +02:00
handlers Use systemd module instead of command 2022-12-28 09:02:17 +01:00
tasks Drop unsigned repository when adding a signed one 2022-12-02 17:40:43 +01:00
templates Fix problems with docker-host daemon.json config 2023-01-10 15:16:30 -05:00
README.md Import docker-host 2017-03-30 15:13:45 +02:00

docker-host

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