Added certbot dns cloudflare role. Useful for when ISP blocks port 80.
---
- 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"