title: How to concatenate several strings and variables in Yaml?
body: <p>I need to do something like this:</p>
  
  <pre><code>domain: &amp;domain example.com
  ip: &amp;ip 1.2.3.4
  Address4: v=spf1 include:*domain ip4:*ip -all
  </code></pre>
  
  <p>I tried this but didn't work, it says there's a syntax error:</p>
  
  <pre><code>Address4: 'v=spf1 include:'*domain' ip4:'*ip' -all'
  </code></pre>
  
  <p>The implementation (I'm using these files in Ansible) seems to support concatenation, for example this works fine:</p>
  
  <pre><code>Address2: http://*domain # actually this doesn't work, I don't remember the exact example
  </code></pre>
  
  <p>Any ideas?</p>