fixes after tests with ansibleguy.infra_django_apache

This commit is contained in:
AnsibleGuy 2021-11-06 22:52:19 +01:00
parent 71f6b4c022
commit a1e59e986f
4 changed files with 4 additions and 18 deletions

View File

@ -59,6 +59,9 @@ Also some basic mods will get a pre-config added. (_prefork, evasive_)
* **Note:** If you want all domain-names to get 'caught' by a site/server you need to add an underline '*' as alias or domain!<br> * **Note:** If you want all domain-names to get 'caught' by a site/server you need to add an underline '*' as alias or domain!<br>
This will also be done automatically if no domain is supplied. This will also be done automatically if no domain is supplied.
* **Warning:** Not every setting/variable you provide will be checked for validity. Bad config might break the role!
## Requirements ## Requirements
* Community collection and certificate role: ```ansible-galaxy install -r requirements.yml``` * Community collection and certificate role: ```ansible-galaxy install -r requirements.yml```

View File

@ -160,7 +160,7 @@
{% if site.app_include %} {% if site.app_include %}
# additional application config include # additional application config include
IncludeOptional site_{{ name }}_app.conf IncludeOptional /etc/apache2/sites-available/site_{{ name }}_app.conf
{% endif %} {% endif %}
</VirtualHost> </VirtualHost>

View File

@ -1,7 +0,0 @@
[Unit]
Description=Service to renew LetsEncrypt Certificates using certbot
[Service]
Type=oneshot
ExecStart=certbot renew -{{ APACHE_CONFIG.letsencrypt.verbosity }} --non-interactive --agree-tos --renew-with-new-domains --rsa-key-size {{ APACHE_CONFIG.letsencrypt.key_size }}
SuccessExitStatus=0

View File

@ -1,10 +0,0 @@
[Unit]
Description=Timer to renew LetsEncrypt Certificates using certbot
[Timer]
OnCalendar={{ APACHE_CONFIG.letsencrypt.renew_timer }}
Persistent=false
WakeSystem=false
[Install]
WantedBy=multi-user.target