You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|Josh Lay 8789c9d594||1 year ago|
|roles/manage-records||1 year ago|
|.gitignore||3 years ago|
|README.md||1 year ago|
|ansible.cfg||1 year ago|
|domains||1 year ago|
|play.yml||1 year ago|
Sample Ansible role to create/remove CloudFlare DNS records
roles/create-records/vars/sample.ymlfor sample DNS zone entry definitions -- change these as desired
To add a domain, define it in the
domains list in
This will load the correlating file at
The symbolic link
./domains was provided to make these files more accessible, not used for function -- can be removed.
TODO: Load files created here dynamically
- Your CloudFlare email address and API key must be stored in
~/.cloudflare.ymllike so for authentication:
--- cf_email: email@example.com cf_token: abcdef123456
If this is a shared system,
chmod -v 0600 ~/.cloudflare.yml once created to avoid potentially leaking credentials.