mirror of
https://github.com/geerlingguy/ansible-role-certbot.git
synced 2026-09-11 16:21:15 +02:00
create method dns and staging server - 1st release
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
# {{ ansible_managed }}
|
||||
|
||||
{% if certbot_dns_plugin == 'rfc2136' %}
|
||||
# Target DNS server (IPv4 or IPv6 address, not a hostname)
|
||||
dns_{{certbot_dns_plugin}}_server={{certbot_dns_target_server}}
|
||||
# Target DNS port
|
||||
dns_{{certbot_dns_plugin}}_port={{certbot_dns_target_server_port}}
|
||||
# TSIG key name
|
||||
dns_{{certbot_dns_plugin}}_name={{certbot_dns_tsig_keyname}}
|
||||
# TSIG key secret
|
||||
dns_{{certbot_dns_plugin}}_secret={{certbot_dns_key_secret}}
|
||||
# TSIG key algorithm
|
||||
dns_{{certbot_dns_plugin}}_algorithm={{certbot_dns_key_algorithm}}
|
||||
{% endif %}
|
||||
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
# {{ ansible_managed }}
|
||||
|
||||
{% for item in certbot_create_dns_renew_hook_services %}
|
||||
|
||||
{% if item == 'haproxy' %}
|
||||
echo $RENEWED_LINEAGE > /tmp/RENEWED_LINEAGE.certbot.txt
|
||||
echo $RENEWED_DOMAINS > /tmp/RENEWED_DOMAINS.certbot.txt
|
||||
{% endif %}
|
||||
|
||||
{% endfor %}
|
||||
Reference in New Issue
Block a user