create method dns and staging server - 1st release

This commit is contained in:
brunobenchimol
2021-11-15 02:13:36 -03:00
parent 027af9b3b3
commit 5dba35e1ee
7 changed files with 137 additions and 0 deletions
+14
View File
@@ -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 %}
+11
View File
@@ -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 %}