imfreedom/email-ansible
Clone
Summary
Browse
Changes
Graph
Add a mostly working apache role and make the mail role depend on it
draft
2020-11-16, Gary Kramlich
5a720c2af9fc
Add a mostly working apache role and make the mail role depend on it
-
name
:
create /etc/letsencrypt/renewal-hooks/deploy directory
file
:
path
:
/etc/letsencrypt/renewal-hooks/deploy
state
:
directory
tags
:
-
certbot
-
name
:
install apache2 hook for certbot
copy
:
src
:
apache2.certbot
dest
:
/etc/letsencrypt/renewal-hooks/deploy/apache2
mode
:
0755
tags
:
-
certbot
-
name
:
obtain a certificate for the hostname
command
:
|
certbot --quiet -m root@pidgin.im --no-eff-email --agree-tos
--webroot -w /var/www/html certonly \
-d {{ inventory_hostname | quote }}
args
:
creates
:
"/etc/letsencrypt/live/{{
inventory_hostname
}}/cert.pem"
notify
:
-
reload apache2
tags
:
-
apache
-
certbot