add core-networks dns plugin
This commit is contained in:
parent
8e2700cf92
commit
484f2ed827
@ -2,10 +2,12 @@
|
||||
certbot_work_dir: /var/lib/letsencrypt
|
||||
certbot_config_dir: /etc/letsencrypt
|
||||
certbot_log_dir: /var/log/letsencrypt
|
||||
certbot_plugin_dir: /etc/letsencrypt/plugins
|
||||
certbot_environment:
|
||||
- { name: "{{ certbot_work_dir }}", mode: '0755' }
|
||||
- { name: "{{ certbot_config_dir }}", mode: '0755' }
|
||||
- { name: "{{ certbot_log_dir }}", mode: '0700' }
|
||||
- { name: "{{ certbot_plugin_dir }}", mode: '0755' }
|
||||
certbot_user: root
|
||||
|
||||
certbot_preferred_challenges: dns
|
||||
@ -28,3 +30,12 @@ certbot_command_arguments:
|
||||
# Use a file under /etc/cron.d
|
||||
# Works onyl if certbot_user is root
|
||||
# certbot_cronfile: certbot-letsencrypt
|
||||
|
||||
# Setup manual auth for core-networks api
|
||||
certbot_core_networks_plugin_enabled: False
|
||||
certbot_core_networks_plugin_repo: https://git.rknet.org/xoxys/certbot_dns_corenetworks.git
|
||||
certbot_core_networks_plugin_version: master
|
||||
certbot_core_networks_api_host: https://beta.api.core-networks.de/
|
||||
certbot_core_networks_api_user: myuser
|
||||
certbot_core_networks_api_password: secure
|
||||
certbot_core_networks_dns_zone: mydomain.com
|
||||
|
16
tasks/plugins.yml
Normal file
16
tasks/plugins.yml
Normal file
@ -0,0 +1,16 @@
|
||||
---
|
||||
- name: Setup core-networks dns plugin
|
||||
block:
|
||||
- name: Clone repo to '{{ certbot_plugin_dir }}'
|
||||
git:
|
||||
repo: "{{ certbot_core_networks_plugin_repo }}"
|
||||
dest: "{{ certbot_plugin_dir }}"
|
||||
version: "{{ certbot_core_networks_plugin_version }}"
|
||||
|
||||
- name: Deploy plugin configuration
|
||||
template:
|
||||
src: corenetworks/config.ini.j2
|
||||
dest: "~/.certbot_dns_corenetworks/config.ini"
|
||||
when: certbot_core_networks_plugin_enabled
|
||||
become: True
|
||||
become_user: "{{ certbot_user }}"
|
10
templates/corenetworks/config.ini.j2
Normal file
10
templates/corenetworks/config.ini.j2
Normal file
@ -0,0 +1,10 @@
|
||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
||||
# {{ ansible_managed }}
|
||||
|
||||
[API]
|
||||
HOST = {{ certbot_core_networks_api_host }}
|
||||
USER = {{ certbot_core_networks_api_user }}
|
||||
PASSWORD = {{ certbot_core_networks_api_password }}
|
||||
|
||||
[DNS]
|
||||
ZONE = {{ certbot_core_networks_dns_zone }}
|
Loading…
Reference in New Issue
Block a user