https://github.com/bsedin/ansible-letsencrypt
Ansible role to retrieve ssl certificates with letsencrypt
https://github.com/bsedin/ansible-letsencrypt
acme ansible https letsencrypt openssl
Last synced: 3 months ago
JSON representation
Ansible role to retrieve ssl certificates with letsencrypt
- Host: GitHub
- URL: https://github.com/bsedin/ansible-letsencrypt
- Owner: bsedin
- License: mit
- Created: 2018-10-01T11:55:54.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-09-01T08:01:06.000Z (over 5 years ago)
- Last Synced: 2025-10-03T14:48:27.785Z (3 months ago)
- Topics: acme, ansible, https, letsencrypt, openssl
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ansible-letsencrypt
Ansible role to retrieve SSL certificates with letsencrypt
Create `./library` directory in your ansible project:
```
mkdir ./library
```
And configure `ansible.cfg`:
```
[defaults]
roles_path = ./library
```
Add submodule:
```
git submodule add git@github.com:kressh/ansible-letsencrypt.git library/letsencrypt
```
Use role:
```yaml
---
- hosts: lb01.yourserver.io
remote_user: ansible
become: true
vars:
letsencrypt_account_email: postmaster@yourdomain.io
letsencrypt_account_key_content: |
-----BEGIN RSA PRIVATE KEY-----
-----END RSA PRIVATE KEY-----
letsencrypt_acme_directory: https://acme-staging.api.letsencrypt.org/directory # Use https://acme-v01.api.letsencrypt.org/directory in production
letsencrypt_csr_email: support@yourdomain.io
letsencrypt_csr_country: UK
letsencrypt_csr_organization: Yourdomain Ltd.
letsencrypt_domains:
- fqdn: yourserver.io
- fqdn: subdomain.yourserver.io
private_key_size: 4096
organization: Your Another Organization Ltd.
email: postmaster@youranotherserver.io
country: UK
roles:
- letsencrypt
```
See also: https://github.com/kressh/ansible-ssl-sync