diff --git a/roles/vhost/tasks/caddy.yml b/roles/vhost/tasks/caddy.yml index 032f2fb..a0a28d3 100644 --- a/roles/vhost/tasks/caddy.yml +++ b/roles/vhost/tasks/caddy.yml @@ -29,11 +29,11 @@ {% elif location.type == 'redirect' %} redir {{ location.redirect_target }}{{ '{uri}' if location.redirect_preserve_path }} {{ location.redirect_type }} {% elif location.type == 'respond' %} - {% if location.respond_content_type == 'json' %} - respond `{{ location.respond_content | to_json }}` - {% else %} - respond `{{ location.respond_content }}` - {% endif %} + {% if location.respond_content_type == 'json' %} + respond `{{ location.respond_content | to_json }}` + {% else %} + respond `{{ location.respond_content }}` + {% endif %} {% endif %} } {% endfor %}