Installs docker or a docker swarm cluster https://www.docker.com
Go to file
Marco Procaccini 5332af4e70 Merge pull request 'crontab prune volume e sistemi migliorati' (!8) from marco.procaccini/ansible-role-docker:master into master
Reviewed-on: #8
2025-10-27 18:04:33 +01:00
.vscode Support the installation of a specific version. 2023-05-26 19:59:26 +02:00
defaults aggiunta cron job che fa il prune di volumi giornalmente 2025-07-04 11:47:07 +02:00
files crontab prune volume e sistemi migliorati 2025-10-27 18:03:26 +01:00
handlers Handler for cAdvisor 2023-05-29 14:17:31 +02:00
meta Support the installation of a specific version. 2023-05-26 19:59:26 +02:00
tasks restart del docker daemon fissato alle 7 del mattino 2025-07-16 10:23:46 +02:00
templates Add the installation of cadvisor. 2023-05-29 13:38:35 +02:00
tests Initial commit 2020-08-06 16:45:47 +02:00
vars Ubuntu < 20.04 does not have requests 2.29. 2025-03-03 15:08:52 +01:00
.gitignore Initial commit 2020-08-06 16:45:47 +02:00
LICENSE Initial commit 2020-08-06 16:45:47 +02:00
README.md Add the installation of cadvisor. 2023-05-29 13:38:35 +02:00

README.md

Role Name

A role that installs and configures Docker and eventually prepares Docker Swarm, https://docker.com. The Docker Swarm nodes configuration is managed by a separate role. cAdvisor is also installed, as standalone package and not as container. The standalone package does not require a local Prometheus instance

Role Variables

The most important variables are listed below:

docker_swarm: False
docker_swarm_manager: False
docker_swarm_manager_availability: 'drain'
docker_swarm_node: False
docker_swarm_node_availability: 'active'
docker_swarm_allowed_hosts:
  - '0.0.0.0/0'

# Set this to one of the manager hostnames to be able to initialize the cluster
docker_swarm_manager_main_node_hostname: localhost
# Set this on one of the masters
docker_swarm_manager_main_node: False
docker_run_as_docker_user: True
docker_user_home: /home/docker
docker_defaults_file: /etc/default/docker
docker_enable_tcp_socket: False
docker_tcp_socket_port: 2375
docker_api_port: 2376
docker_tcp_socket_host: 127.0.0.1
docker_log_to_journal: True

Dependencies

None

License

EUPL-1.2

Author Information

Andrea DellAmico, andrea.dellamico@isti.cnr.it