Ansible playbook doesn't support compose v2
niorg opened this issue · 1 comments
niorg commented
When using compose v2 specific options the ansible playbook will fail:
TASK [Start docker-compose] **************************************************** Tuesday 12 September 2023 14:46:35 +0000 (0:00:00.034) 0:02:02.869 ***** fatal: [63.35.196.100]: FAILED! => {"changed": false, "msg": "Configuration error - The Compose file '/home/ubuntu/project/docker-compose.yaml' is invalid because:\nservices.service1.depends_on contains unsupported option: 'required'\nservices.service2.depends_on contains unsupported option: 'required'"}
It seems this won't be resolved anytime soon at the ansible front, so maybe those tasks need to be replaced with a simple ansible.builtin.command
?