Add common roles from polyfloyd's playbookds
This commit is contained in:
parent
1332f49101
commit
e43ec3229f
23 changed files with 694 additions and 0 deletions
5
roles/acme/templates/config.sh
Normal file
5
roles/acme/templates/config.sh
Normal file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Managed by Ansible
|
||||
|
||||
CONTACT_EMAIL={{ notify_email }}
|
6
roles/acme/templates/cron
Normal file
6
roles/acme/templates/cron
Normal 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
|
9
roles/acme/templates/deploy.sh
Normal file
9
roles/acme/templates/deploy.sh
Normal 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
|
||||
}
|
9
roles/acme/templates/domains.txt
Normal file
9
roles/acme/templates/domains.txt
Normal 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 %}
|
6
roles/acme/templates/nginx-snippet.conf
Normal file
6
roles/acme/templates/nginx-snippet.conf
Normal file
|
@ -0,0 +1,6 @@
|
|||
# Managed by Ansible
|
||||
|
||||
location /.well-known/acme-challenge {
|
||||
allow all;
|
||||
alias /var/lib/dehydrated/acme-challenges;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue