Skip to content

Ansible playbook doesn't support compose v2 #135

Closed
@niorg

Description

@niorg

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions