docker_host
Type: generic-role
This role installs and initializes docker hosts at the given VMs. One can define, in how far this host shall be administrated by Portainer. This can be done by setting a specific variable: - has_portainer_agent: true OR - has_portainer_host: true

Table of content
Requirements
- Minimum Ansible version:
['2.13']
Discovered Tags
Add user to group\ Install docker-compose if this is define by the host-vars
Basic Installations\ installs dependencies and add docker to packages
Initialize portainer\ This tasks installs a portainer or portainer-agent container, depending on the vars definition
Install docker-compose\ Simply installing it from packages can lead to an older version (esp. on Debian systems). Thats why we chose another approach. source: https://computingforgeeks.com/how-to-install-latest-docker-compose-on-linux/
Set major directory\ This tasks changes the default data-directory of docker
Set up docker tmux script\
Set up tmux script to watch logs and as basic starting point for investigations Enter tmux session by: tmux a -t docker
Open Tasks
- (improvement): fix inconsistency of using has_portainer_host & is part of portainer_host group
Dependencies
None.
License
Apache 2.0