updated template
diff --git a/templates/pip.conf.j2 b/templates/pip.conf.j2
index 36207ee..9580fd3 100644
--- a/templates/pip.conf.j2
+++ b/templates/pip.conf.j2
@@ -1,5 +1,7 @@
 [global]
 index-url = {{ pip_index_url }}
+
 {% if pip_trusted_hosts is defined %}
+[install]
 trusted-hosts = {{ pip_trusted_hosts }}
 {% endif %}
\ No newline at end of file