Skip to content

Streamline the docker installation

Backstory

I had a small issue with the docker version being 20.x.x on my debian instead of 27.x.x. I was unable to kill the service, they kept respawning.

So I've looked at the roles and find out it was too static.

What changed

I've change the logic to use the same logic as in https://docs.docker.com/engine/install/debian/ . I've also extracted the logic to use it in homelabos_api_deploy

Next

The move was intended to help a future refactor, to extract the redundant code.

Summary by CodeRabbit

  • New Features

    • Introduced a streamlined process for installing Docker and docker-compose on Debian and Ubuntu systems through an external playbook.
    • Added tasks for managing Docker GPG keys and repository configuration.
  • Bug Fixes

    • Improved structure by delegating Docker installation tasks, enhancing maintainability.
  • Chores

    • Removed outdated tasks related to Docker installation from the main playbook, simplifying the task list.
Edited by CodeRabbit

Merge request reports

Loading