# HG changeset patch # User Luke Hoersten # Date 1597532049 18000 # Node ID effd8e58a796a3de3350432072cc556cf77374f6 # Parent 10996eb41bf47c10d44efdbd8899760a2db9c78d Added certbot dns cloudflare role. Useful for when ISP blocks port 80. diff -r 10996eb41bf4 -r effd8e58a796 certbot-dns-cloudflare/tasks/main.yaml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/certbot-dns-cloudflare/tasks/main.yaml Sat Aug 15 17:54:09 2020 -0500 @@ -0,0 +1,23 @@ +--- + +- name: apt install dns cloudflare + become: yes + apt: name="python3-certbot-dns-cloudflare" + +- name: configure cloudflare credentials + become: yes + template: + src: "cred.conf.j2" + dest: "/etc/letsencrypt/cred.conf" + mode: "0600" + owner: "root" + group: "root" + +- name: configure renewal + become: yes + template: + src: "{{certbot_dns_cloudflare_conf}}" + dest: "/etc/letsencrypt/renewal/{{certbot_dns_cloudflare_domain}}.conf" + mode: "0644" + owner: "root" + group: "root" diff -r 10996eb41bf4 -r effd8e58a796 certbot-dns-cloudflare/templates/cred.conf.j2 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/certbot-dns-cloudflare/templates/cred.conf.j2 Sat Aug 15 17:54:09 2020 -0500 @@ -0,0 +1,2 @@ +dns_cloudflare_email = {{certbot_dns_cloudflare_email}} +dns_cloudflare_api_key = {{certbot_dns_cloudflare_api_key}}