How do I get an Ansible template to honor new lines after a conditional July 19, 2023 by Tarik Add the following line to your template at first position: #jinja2: trim_blocks:False