Skip to content

This play is for adding a DNS A record using the cloudflare api and then updating it with a cloudflare dynamic DNS update script.

License

Notifications You must be signed in to change notification settings

lpwoodhouse/cloudflare_add_record

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Add DNS A Record to Cloudflare

Cloudflare playbook GitHub last commit GitHub repo file count GitHub top language GitHub

Purpose

This play is for adding a DNS A record using the cloudflare api and then updating it with a cloudflare dynamic DNS update script.

Requirements

community.general

Role Variables

Available variables are listed below, along with default values (see defaults/main.yml)

# add_record role
auth_email: user@example.com
auth_key: <auth_key>
sub_domain: <sub_domain>
root_domain: example.com
# ddns_update role
auth_email: user@example.com
auth_key: <auth_key>
zone_id: <zone_id>
script_path: ~/cloudflare-ddns-updater/
sub_domain: <sub_domain>
root_domain: example.com

Dependencies

None

Example Playbook

    - hosts: all
      vars:
        add_record: true
      roles:
        - add_record
        - ddns_update

Author Information

This role was created in 2022 by Lee Woodhouse

About

This play is for adding a DNS A record using the cloudflare api and then updating it with a cloudflare dynamic DNS update script.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published