48 lines
858 B
Markdown
48 lines
858 B
Markdown
=========
|
|
|
|
Installs acme-client and setup certs
|
|
|
|
Role Variables
|
|
--------------
|
|
|
|
```yml
|
|
acme_hosts: []
|
|
- domain: www.exmaple.com
|
|
alt_names:
|
|
- example.com
|
|
- git.exmaple.com
|
|
key: "/etc/ssl/private/example.com.key"
|
|
cert: "path_cert"
|
|
chain_cert: "chain_cert"
|
|
full_chain_cert: "full_cert"
|
|
challengedir: /var/www/acme/example.com
|
|
authority: letsencrypt
|
|
reload_command: "systemctl reload nginx"
|
|
- domain: www.doamin2.com
|
|
key: "/etc/ssl/private/domain2.com.key"
|
|
cert: "path_cert"
|
|
full_chain_cert: "full_cert"
|
|
```
|
|
|
|
optional if you don't use Lets Encrypt
|
|
```yml
|
|
acme_authorities:
|
|
- name: authority_name
|
|
key: "/etc/ssl/private/acme_authority.key"
|
|
api_url: "authority_url"
|
|
```
|
|
|
|
Example Playbook
|
|
----------------
|
|
|
|
```yml
|
|
- hosts: localhost
|
|
roles:
|
|
- { role: acme }
|
|
```
|
|
|
|
License
|
|
-------
|
|
|
|
MIT
|