# {{ ansible_managed }} {% for i in '80', '443' %} {% if i == '443' %} # TODO fix the key SSLCertificateKeyFile /etc/pki/tls/private/localhost.key SSLCertificateFile /etc/pki/tls/certs/localhost.crt SSLEngine on {% endif %} Alias /cgit-data /usr/share/cgit ScriptAlias /cgit /var/www/cgi-bin/cgit RedirectMatch ^/$ /cgit/ ServerName git.{{ ansible_domain }} {% endfor %}