amartin

tabs in ansible 2.x

Jan 18th, 2016
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. This used to work in ansible 1.x:
  2. myvar: |
  3. {{'\t'}}one
  4. {{'\t'}}two
  5. {{'\t'}}three
  6.  
  7. It no longer works in ansible2.x (the literal characters get inserted).
  8.  
  9. This also won't work because of the extra indentation after the variable name:
  10. myvar: |
  11. one
  12. two
  13. three
  14.  
  15. This does work, but it looks confusing:
  16. myvar: |
  17. {{''}} one
  18. two
  19. three
Advertisement
Add Comment
Please, Sign In to add comment