Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playbook task failed: No package matching 'docker-compose-plugin' is available #626

Open
radonman opened this issue Jan 10, 2025 · 1 comment

Comments

@radonman
Copy link

radonman commented Jan 10, 2025

@geerlingguy

Ran sudo ansible-playbook main.yml and got this result:

roarkeponce@RadoNUX:~/internet-pi$ sudo ansible-playbook main.yml
[sudo] password for roarkeponce:

PLAY [Configure Internet Pi.] ***********************************************************************************************

TASK [Gathering Facts] ******************************************************************************************************
ok: [127.0.0.1]

TASK [Load configuration (with defaults from example file).] ****************************************************************
ok: [127.0.0.1] => (item=config.yml)

TASK [Ensure apt cache is up to date.] **************************************************************************************
ok: [127.0.0.1]

TASK [Ensure pacman cache is up to date] ************************************************************************************
skipping: [127.0.0.1]

TASK [Check if Docker is already present.] **********************************************************************************
ok: [127.0.0.1]

TASK [Download Docker install convenience script.] **************************************************************************
skipping: [127.0.0.1]

TASK [Run Docker install convenience script.] *******************************************************************************
skipping: [127.0.0.1]

TASK [Ensure Docker is started.] ********************************************************************************************
ok: [127.0.0.1]

TASK [Ensure dependencies are installed (Debian).] **************************************************************************
fatal: [127.0.0.1]: FAILED! => {"changed": false, "msg": "No package matching 'docker-compose-plugin' is available"}

PLAY RECAP ******************************************************************************************************************
127.0.0.1                  : ok=5    changed=0    unreachable=0    failed=1    skipped=3    rescued=0    ignored=0

Installing on a Intel NUC running Ubuntu 24.04.1 LTS

@geerlingguy
Copy link
Owner

It seems like you may have installed Docker manually prior to running this playbook, in which case running sudo apt install -y docker-compose-plugin would throw the same error (you can test that and see!).

If so, two options to get past this would be (choose one):

  1. Uninstall Docker completely
  2. Edit the tasks/docker.yml file and comment out or delete the line - docker-compose-plugin inside the Ensure dependencies are installed (Debian). task

The latter option may get you further in the playbook, but if the Docker install on your system is older (e.g. if you're using the basic Ubuntu 24.04 apt Docker installation, or Docker Desktop), it could cause issues with Docker Compose. Only one way to find out, though!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants