use cloudflare memes
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
# {{ansible_managed}}
|
||||
{% for server in webserver %}
|
||||
certbot renew --nginx --cert-name {{ server.domain }}
|
||||
certbot renew --dns-cloudflare --dns-cloudflare-credentials /root/cf-creds.ini 10 --cert-name {{ server.domain }}
|
||||
{% endfor %}
|
||||
|
3
roles/webserver/templates/cf-creds.ini
Normal file
3
roles/webserver/templates/cf-creds.ini
Normal file
@ -0,0 +1,3 @@
|
||||
# Cloudflare API token used by Certbot
|
||||
# {{ ansible_managed }}
|
||||
dns_cloudflare_api_token = {{ cloudflare_token }}
|
Reference in New Issue
Block a user