Skip to content

BUG(docker_compose_project): Nulls appearing in docker networks. #7

@zloveless

Description

@zloveless

Offending task: https://github.com/zloveless/ansible-containers/blob/main/roles/docker_compose_project/tasks/install.yaml#L24-L28

I'm wondering if it's to_nice_yaml being weird. it's taking the following valid docker compose file piece

networks:
  default:
  backend:
  web:
    external: true
  cloudflare:
    external: true

and writing this

networks:
  default: null
  backend: null
  web:
    external: true
  cloudflare:
    external: true

I've tried replacing the blanks with {} just emits {} as written.

It's breaking when the systemd service is starting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions