Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion defaults/settings.yml.default
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ use_crowdsec: true
cloudflare:
tag_ddns: latest
tag_companion: latest
api_key:
api_email:
api_key:
api_token:
domain_zone_id:
traefik:
tag: "3.6.14"
Expand Down
9 changes: 3 additions & 6 deletions roles/cloudflare/tasks/ddns/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,13 @@
- name: Create and start Cloudflare Dynamic DNS Updater
community.docker.docker_container:
name: cf-ddns
image: "oznu/cloudflare-ddns:{{ cloudflare.tag_ddns }}"
image: "favonia/cloudflare-ddns:{{ cloudflare.tag_ddns }}"
pull: true
recreate: true
state: started
restart_policy: always
env:
API_KEY: "{{ cloudflare.api_key }}"
EMAIL: "{{ cloudflare.api_email }}"
ZONE: "{{ domain }}"
CLOUDFLARE_API_TOKEN: "{{ cloudflare.api_token }}"
DOMAINS: "{{ domain }}"
PROXIED: "true"
RRTYPE: "A"
DELETE_ON_STOP: "false"
DNS_SERVER: "1.1.1.1"
1 change: 1 addition & 0 deletions roles/cloudflare/tasks/traefik/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
homer.logo: "assets/homer-icons/svg/cloudflare.svg"
homer.target: "_blank"
env:
TIMEZONE: "{{ tz }}"
TRAEFIK_VERSION: "2"
CF_TOKEN: "{{ cloudflare.api_key }}"
CF_EMAIL: "{{ cloudflare.api_email }}"
Expand Down