Skip to content

feat: Setting upstream port via ansible is conflicting, offer an alternative to curly brackets. #713

@johnmmcgee

Description

@johnmmcgee

Hello,

I was curious if there could be a possibility to offer an alternative option for setting upstream ports as the double curly brackets "{{" "}}" make setting up container labels via anslble a bit difficult. Example:

 container_labels:
  - "caddy.reverse_proxy: {{upstreams 5000}}"

This makes ansible assume that it is attempting to call a variable.

There is a solution, but it is ugly:

container_labels:
  - "caddy.reverse_proxy: {{ '{{' }}upstreams 5000{{ '}}' }}"

I am open to suggestions. If i my approach to this is incorrect, I would be happy to accept a syntax correction that I may have overlooked.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions