Sample Ansible role to create CloudFlare DNS records
Find a file
2021-12-18 21:36:38 -06:00
roles/create-records add bogus example domain, "sampledomain.local" 2021-12-18 21:36:38 -06:00
.gitignore init 2020-08-22 01:45:15 -05:00
ansible.cfg disable cowsay 2021-12-18 21:31:17 -06:00
domains add symlink to role vars for domains 2021-12-18 21:31:44 -06:00
play.yml add bogus example domain, "sampledomain.local" 2021-12-18 21:36:38 -06:00
README.md init 2020-08-22 01:45:15 -05:00

cfdns

Sample Ansible role to create CloudFlare DNS records

Requirements

  1. See roles/defaults/vars.yml for sample DNS zone entry definitions -- change/remove these as desired

  2. Your CloudFlare email address and API key must be stored in ~/.cloudflare.yml like so for authentication:

---
cf_email: you@domain.com
cf_token: abcdef123456

If this is a shared system, chmod -v 0600 ~/.cloudflare.yml once created to avoid potentially leaking credentials.