Install Docker CE and Docker Compose on Ubuntu 20.04 LTS (Focal Fossa). Based heavily off of geerlingguy.docker.
As 20.04, Ubuntu includes docker.io
and docker-compose
in the apt repositories the installation is much simpler than on previous Ubuntu versions.
Tested only on Ubuntu 20.04 LTS Focal Fossa. No guarantee it will work on other distros or Ubuntu versions.
Variable | Description | Type | Required | Default |
---|---|---|---|---|
uninstall_existing_docker |
Whether to uninstall existing docker packages | Bool | No | false |
docker_install_compose |
Whether to install Docker Compose | Bool | No | true |
docker_users |
List of users to add to the docker group |
List | No | [] |
None.
- hosts: all
roles:
- role: jake-morgan.docker-focal
vars:
uninstall_existing_docker: true
docker_install_compose: true
docker_users:
- my_user
- ansible
MIT