This play is for adding a DNS A record using the cloudflare api and then updating it with a cloudflare dynamic DNS update script.
community.general
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
None
- hosts: all
vars:
add_record: true
roles:
- add_record
- ddns_update
This role was created in 2022 by Lee Woodhouse