CorbanR.letsencrypt
letsencrypt(DEPRECATED)
DEPRECATED see https://docs.ansible.com/ansible/latest/modules/letsencrypt_module.html
Installs letsencrypt and generates/installs a certificate.
Generate Cert
In order to generate a certificate port 443 needs to be open and the following variables are required.
Required Variables:
subdomain:domain:letsencrypt_email:
Optional Variables:
server_type:#apache or nginx. Will use the webserver of your choosing to verify the request (Standalone).revoke:#Set toyesif you want to revoke the certificateforce_renewal:#Set toyesto force certificate renewal.
Example:
- hosts: letsencrypt
remote_user: <your_user>
become: yes
vars:
subdomain: www
domain: example.com
letsencrypt_email: [email protected]
roles:
- CorbanR.letsencrypt
Defaults
authenticator: "standalone"certificate_path: /etc/letsencrypt/liveletsencrypt_bin: "/root/.local/share/letsencrypt/bin/letsencrypt"letsencrypt_gitlocation: /opt/letsencryptletsencrypt_server: https://acme-staging.api.letsencrypt.org/directoryrenew_days: 10rsa_key_size: 2048ssl_days_remaining: "{{ renew_days }}"standalone_supported_challenges: "tls-sni-01"webroot_path: ""
To Do
- Multiple certificate logic
- Add logic for authenticator type != "standalone"
- Add cron job to check certificate expiration and auto renew.
Install
ansible-galaxy install CorbanR.letsencryptLicense
Unknown
Downloads
66
Owner
