xoxys.lego/README.md

149 lines
2.3 KiB
Markdown
Raw Normal View History

2024-09-27 18:40:51 +00:00
# xoxys.lego
2024-09-27 19:22:06 +00:00
[![Build Status](https://ci.rknet.org/api/badges/ansible/xoxys.lego/status.svg)](https://ci.rknet.org/repos/ansible/xoxys.lego)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg?label=license)](https://gitea.rknet.org/ansible/xoxys.lego/src/branch/main/LICENSE)
Deploy Lego ACME client to manage Lets Encrypt certificates.
## Table of content
- [Requirements](#requirements)
- [Default Variables](#default-variables)
2024-09-27 23:05:11 +00:00
- [lego_acme_account_email](#lego_acme_account_email)
2024-09-27 19:22:06 +00:00
- [lego_acme_server](#lego_acme_server)
- [lego_certificates](#lego_certificates)
- [lego_cloudflare_api_token](#lego_cloudflare_api_token)
2024-09-27 23:05:11 +00:00
- [lego_dns_resolvers](#lego_dns_resolvers)
2024-09-27 19:42:04 +00:00
- [lego_key_type](#lego_key_type)
2024-09-28 21:07:14 +00:00
- [lego_renew_enabled](#lego_renew_enabled)
- [lego_renew_interval](#lego_renew_interval)
- [lego_renew_randomized_delay](#lego_renew_randomized_delay)
2024-09-27 19:22:06 +00:00
- [lego_version](#lego_version)
- [Dependencies](#dependencies)
- [License](#license)
- [Author](#author)
---
## Requirements
- Minimum Ansible version: `2.10`
## Default Variables
2024-09-27 23:05:11 +00:00
### lego_acme_account_email
2024-09-27 19:22:06 +00:00
#### Default value
```YAML
2024-09-27 23:05:11 +00:00
lego_acme_account_email: _unset_
```
#### Example usage
```YAML
lego_acme_account_email: user@example.com
2024-09-27 19:22:06 +00:00
```
### lego_acme_server
#### Default value
```YAML
lego_acme_server: https://acme-v02.api.letsencrypt.org
```
### lego_certificates
#### Default value
```YAML
lego_certificates: []
```
#### Example usage
```YAML
2024-09-27 23:05:11 +00:00
lego_certificates:
- name: example
domains:
- example.com
- www.example.com
hook: |
#!/bin/env bash
2024-09-27 19:22:06 +00:00
```
### lego_cloudflare_api_token
#### Default value
```YAML
2024-09-27 23:05:11 +00:00
lego_cloudflare_api_token: _unset_
```
#### Example usage
```YAML
lego_cloudflare_api_token: _dhTdcj9g9s7gcpbN7qsh9CR3RMVHdM7v
2024-09-27 19:22:06 +00:00
```
2024-09-28 21:07:14 +00:00
### lego_dns_resolvers
2024-09-27 19:42:04 +00:00
#### Default value
```YAML
2024-09-28 21:07:14 +00:00
lego_dns_resolvers: []
2024-09-27 19:42:04 +00:00
```
2024-09-28 21:07:14 +00:00
### lego_key_type
2024-09-27 19:42:04 +00:00
#### Default value
```YAML
2024-09-28 21:07:14 +00:00
lego_key_type: ec256
2024-09-27 19:42:04 +00:00
```
2024-09-28 21:07:14 +00:00
### lego_renew_enabled
2024-09-27 19:42:04 +00:00
#### Default value
```YAML
2024-09-28 21:07:14 +00:00
lego_renew_enabled: true
2024-09-27 19:42:04 +00:00
```
2024-09-28 21:07:14 +00:00
### lego_renew_interval
2024-09-27 23:05:11 +00:00
#### Default value
```YAML
2024-09-28 21:07:14 +00:00
lego_renew_interval: '*-*-* 1:35'
2024-09-27 23:05:11 +00:00
```
2024-09-28 21:07:14 +00:00
### lego_renew_randomized_delay
2024-09-27 19:42:04 +00:00
#### Default value
```YAML
2024-09-28 21:07:14 +00:00
lego_renew_randomized_delay: 1h
2024-09-27 19:42:04 +00:00
```
2024-09-27 19:22:06 +00:00
### lego_version
#### Default value
```YAML
lego_version: 4.18.0
```
## Dependencies
None.
## License
MIT
## Author
[Robert Kaussow](https://gitea.rknet.org/xoxys)