Add common roles from polyfloyd's playbookds

This commit is contained in:
polyfloyd 2022-10-05 21:17:25 +02:00
parent 1332f49101
commit e43ec3229f
23 changed files with 694 additions and 0 deletions

View file

@ -0,0 +1,5 @@
#!/bin/bash
# Managed by Ansible
CONTACT_EMAIL={{ notify_email }}

View file

@ -0,0 +1,6 @@
# Managed by Ansible
SHELL=/bin/sh
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
49 6 * * * root /usr/bin/dehydrated --cron

View file

@ -0,0 +1,9 @@
#!/bin/bash
# Managed by Ansible
deploy_cert() {
local DOMAIN="${1}" KEYFILE="${2}" CERTFILE="${3}" FULLCHAINFILE="${4}" CHAINFILE="${5}" TIMESTAMP="${6}"
systemctl reload nginx.service
}

View file

@ -0,0 +1,9 @@
# Managed by Ansible
{% for domain in acme_domains|default([]) %}
{{ domain }}
{% endfor %}
{% for domains in acme_san_domains|default([]) %}
{{ domains | join(' ') }}
{% endfor %}

View file

@ -0,0 +1,6 @@
# Managed by Ansible
location /.well-known/acme-challenge {
allow all;
alias /var/lib/dehydrated/acme-challenges;
}