ansible-role-docker-compose-generator icon indicating copy to clipboard operation
ansible-role-docker-compose-generator copied to clipboard

Spacing bug

Open SolidRhino opened this issue 9 months ago • 3 comments

If I create the following directory structure:

services
└── solid-dog
    ├── 01-Caddy
    │   └── compose.yaml
    └── 99-ExtraConfig
        └── compose.yaml

And the compose file in the ExtraConfig directory contains:

services:
  
networks:
  proxy:
  caddy-macvlan:
    name: caddy-macvlan
    driver: macvlan
    driver_opts:
      parent: eth0
    ipam:
      config:
        - subnet: "192.168.50.0/24"
          gateway: "192.168.50.1"

volumes:
  caddy_data:
  caddy_config:

The compose file that is generated is not correct:

...
volumes:
      - caddy_data:/data
      - cddy_config:/config
      - ./Caddyfile:/etc/caddy/Caddyfile:ro
    networks:
      caddy-macvlan:
        ipv4_address: 192.168.50.5
      proxy:
  networks:
  proxy:
  caddy-macvlan:
    name: caddy-macvlan
    driver: macvlan
...

You can see that the spacing of the networks: line is incorrect.

SolidRhino avatar Jan 31 '25 13:01 SolidRhino