Compose does not work on centos
Summary
Compose does not work on centos.
Steps to reproduce
Use service_compose
on Centos-7.
Expected behavior
Service start withour issue.
Actual behavior
Task fail.
Relevant logs and/or screenshots
TASK [docker : Check if docker-compose specific parameters are set] *************************************************************************************************************************************************************************
skipping: [gitlab]
TASK [docker : Check if /etc/docker-gitlab/gitlab-compose.yml file exists] ******************************************************************************************************************************************************************
ok: [gitlab]
TASK [service : check if basic parameters are set] ******************************************************************************************************************************************************************************************
skipping: [gitlab]
TASK [service : add docker-gitlab service] **************************************************************************************************************************************************************************************************
changed: [gitlab]
TASK [service : reload systemd] *************************************************************************************************************************************************************************************************************
changed: [gitlab]
TASK [service : start the service] **********************************************************************************************************************************************************************************************************
fatal: [gitlab]: FAILED! => {"changed": false, "failed": true, "msg": "Unable to restart service docker-gitlab: Job for docker-gitlab.service failed because the control process exited with error code. See \"systemctl status docker-gitlab.service\" and \"journalctl -xe\" for details.\n"}
to retry, use: --limit @/home/korthalsp/projects/apl/teamwork/action-deploy.retry
On Centos:
# which docker-compose
/usr/bin/docker-compose
On Ubuntu:
# which docker-compose
/usr/local/bin/docker-compose
Possible fixes
Generate compose comand using which
output