I'm trying to get a multi-line comment to use variables in PyYAML but not sure if this is even possible.
So, in YAML
, you can assign a variable like:
current_host: &hostname myhost
But it doesn't seem to expand in the following:
test: |
Hello, this is my string
which is running on *hostname
Is this at all possible or am I going to have to use Python to parse it?