geerlingguy / internet-pi

Raspberry Pi config for all things Internet.
MIT License
4.29k stars 448 forks source link

Could not find requested service docker: host #456

Closed FQQD closed 1 year ago

FQQD commented 1 year ago

Everytime I try to run "ansible-playbook main.yml" I get this error message and I'm not sure what it means:


ok: [127.0.0.1]

TASK [Load configuration (with defaults from example file).] *******************************************************************************************************************
ok: [127.0.0.1] => (item=example.config.yml)
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.] ***********************************************************************************************************************************************
fatal: [127.0.0.1]: FAILED! => {"changed": false, "msg": "Could not find the requested service docker: host"}

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

thanks for your help
FQQD commented 1 year ago

I seem to have fixed it by running sudo apt install docker-compose