2020-01-22 22:40:18 +00:00
---
title: certbot
type: docs
---
2022-06-20 20:28:00 +00:00
[![Source Code ](https://img.shields.io/badge/gitea-source%20code-blue?logo=gitea&logoColor=white )](https://gitea.rknet.org/ansible/xoxys.certbot) [![Build Status ](https://img.shields.io/drone/build/ansible/xoxys.certbot?logo=drone&server=https%3A%2F%2Fdrone.rknet.org )](https://drone.rknet.org/ansible/xoxys.certbot) [![License: MIT ](https://img.shields.io/badge/license-MIT-blue.svg )](https://gitea.rknet.org/ansible/xoxys.certbot/src/branch/main/LICENSE)
2020-01-31 10:41:52 +00:00
Setup [certbot ](https://certbot.eff.org/ ) Let's Encrypt client.
2020-01-22 22:40:18 +00:00
2022-06-20 20:28:00 +00:00
<!-- more -->
2022-03-03 20:22:32 +00:00
- [Default Variables ](#default-variables )
- [certbot_bin ](#certbot_bin )
- [certbot_command_arguments ](#certbot_command_arguments )
- [certbot_config_dir ](#certbot_config_dir )
- [certbot_credentials ](#certbot_credentials )
- [certbot_cron_enabled ](#certbot_cron_enabled )
- [certbot_cron_file ](#certbot_cron_file )
- [certbot_cron_hour ](#certbot_cron_hour )
- [certbot_cron_minute ](#certbot_cron_minute )
- [certbot_domain_groups ](#certbot_domain_groups )
- [certbot_email ](#certbot_email )
- [certbot_log_dir ](#certbot_log_dir )
- [certbot_max_log_backups ](#certbot_max_log_backups )
- [certbot_packages_extra ](#certbot_packages_extra )
- [certbot_preferred_challenges ](#certbot_preferred_challenges )
- [certbot_rsa_key_size ](#certbot_rsa_key_size )
- [certbot_server ](#certbot_server )
- [certbot_user ](#certbot_user )
- [certbot_version ](#certbot_version )
- [certbot_virtualenv ](#certbot_virtualenv )
- [certbot_virtualenv_command ](#certbot_virtualenv_command )
- [certbot_work_dir ](#certbot_work_dir )
- [Dependencies ](#dependencies )
2020-01-22 22:40:18 +00:00
---
## Default Variables
2020-04-20 22:13:09 +00:00
### certbot_bin
Location of the certbot binary. Default is to `~/.local/.bin/certbot` .
2020-01-22 22:40:18 +00:00
### certbot_command_arguments
#### Default value
```YAML
certbot_command_arguments:
- certonly
```
### certbot_config_dir
#### Default value
```YAML
certbot_config_dir: /etc/letsencrypt
```
2020-04-19 21:55:20 +00:00
### certbot_credentials
2020-01-22 22:40:18 +00:00
2020-04-19 21:55:20 +00:00
Specify key value parairs for your credentials (e.g. plugin credentials). The credentials will be saved to `{{ certbot_config_dir }}/credentials.ini and you could add the path to ` certbot_command_arguments` if required.
2020-01-22 22:40:18 +00:00
#### Default value
```YAML
2020-04-19 21:55:20 +00:00
certbot_credentials: []
2020-01-22 22:40:18 +00:00
```
2020-04-20 20:50:34 +00:00
### certbot_cron_enabled
Enable scheduling via cron.
#### Default value
```YAML
certbot_cron_enabled: true
```
2020-04-19 21:55:20 +00:00
### certbot_cron_file
2020-01-22 22:40:18 +00:00
2021-04-17 10:27:03 +00:00
Use a file under /etc/cron.d but this will only work if `certbot_user` has write permissions for this location.
2020-01-22 22:40:18 +00:00
#### Default value
```YAML
2020-04-19 21:55:20 +00:00
certbot_cron_file: _unset_
2020-01-22 22:40:18 +00:00
```
2020-04-19 21:55:20 +00:00
#### Example usage
2020-01-22 22:40:18 +00:00
```YAML
2020-04-19 21:55:20 +00:00
certbot-letsencrypt
2020-01-22 22:40:18 +00:00
```
2020-04-19 21:55:20 +00:00
### certbot_cron_hour
2020-01-22 22:40:18 +00:00
#### Default value
```YAML
2020-04-20 22:13:09 +00:00
certbot_cron_hour: '3'
2020-01-22 22:40:18 +00:00
```
2020-04-19 21:55:20 +00:00
### certbot_cron_minute
2020-01-22 22:40:18 +00:00
#### Default value
```YAML
2020-04-20 22:13:09 +00:00
certbot_cron_minute: '30'
2020-01-22 22:40:18 +00:00
```
2020-05-22 20:24:38 +00:00
### certbot_domain_groups
2020-01-22 22:40:18 +00:00
#### Default value
```YAML
2020-05-22 20:24:38 +00:00
certbot_domain_groups:
- name: example
domains:
- '*.example.com'
- example.com
init: false
2020-01-22 22:40:18 +00:00
```
### certbot_email
#### Default value
```YAML
certbot_email: mail@example.com
```
### certbot_log_dir
#### Default value
```YAML
certbot_log_dir: /var/log/letsencrypt
```
2021-06-04 06:53:13 +00:00
### certbot_max_log_backups
#### Default value
```YAML
certbot_max_log_backups: 30
```
2020-01-22 22:40:18 +00:00
### certbot_packages_extra
2020-04-20 22:13:09 +00:00
Extra packages to install with pip (e.g. DNS plugins).
2020-01-22 22:40:18 +00:00
#### Default value
```YAML
certbot_packages_extra: []
```
### certbot_preferred_challenges
#### Default value
```YAML
certbot_preferred_challenges: dns
```
### certbot_rsa_key_size
#### Default value
```YAML
certbot_rsa_key_size: 4096
```
### certbot_server
#### Default value
```YAML
certbot_server: https://acme-v02.api.letsencrypt.org/directory
```
### certbot_user
#### Default value
```YAML
certbot_user: root
```
2021-04-17 10:27:03 +00:00
### certbot_version
Set a fix version of the certbot package to install.
#### Default value
```YAML
certbot_version: _unset_
```
2021-06-12 15:53:29 +00:00
### certbot_virtualenv
#### Default value
```YAML
certbot_virtualenv: /opt/python3/certbot
```
### certbot_virtualenv_command
#### Default value
```YAML
certbot_virtualenv_command: /usr/bin/python3 -m venv
```
2020-01-22 22:40:18 +00:00
### certbot_work_dir
#### Default value
```YAML
certbot_work_dir: /var/lib/letsencrypt
```
2022-03-03 20:22:32 +00:00
2020-01-22 22:40:18 +00:00
## Dependencies
None.