ansible

You can test your jinja template from within the ansible context wihtout running ansible against a node

ansible all -i "localhost," -c local -m template -a "src=roles/a-role/templates/nice_template.j2 dest=./test.txt" --extra-vars='{"hostname": "epichost"}' && cat test.txt