Skip to content

Latest commit

 

History

History
50 lines (40 loc) · 1.53 KB

README.md

File metadata and controls

50 lines (40 loc) · 1.53 KB

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: [email protected]
auth_key: <auth_key>
sub_domain: <sub_domain>
root_domain: example.com
# ddns_update role
auth_email: [email protected]
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