feat(caddy): netcup->cf

Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
Tuan-Dat Tran
2025-10-25 09:25:40 +02:00
parent d9181515bb
commit 9cb90a8020
4 changed files with 21 additions and 18 deletions

View File

@@ -25,7 +25,7 @@
become: true become: true
- name: Build Custom Caddy with netcup - name: Build Custom Caddy with netcup
ansible.builtin.command: xcaddy build --with github.com/caddy-dns/netcup ansible.builtin.command: xcaddy build --with github.com/caddy-dns/cloudflare
environment: environment:
PATH: "{{ ansible_env.PATH }}:/usr/local/go/bin" PATH: "{{ ansible_env.PATH }}:/usr/local/go/bin"
register: xcaddy_build register: xcaddy_build

View File

@@ -18,10 +18,8 @@
} }
tls { tls {
dns netcup { dns cloudflare {
customer_number {{ netcup_customer_id }} api_token {{ cloudflare_api_token }}
api_key {{ netcup_api_key }}
api_password {{ netcup_api_password }}
} }
propagation_timeout 900s propagation_timeout 900s
propagation_delay 600s propagation_delay 600s

View File

@@ -1,14 +1,17 @@
$ANSIBLE_VAULT;1.1;AES256 $ANSIBLE_VAULT;1.1;AES256
39363732646365356438376435333235623762396237353933613036633233623964363662326335 33363962303935656231346162373837336438643137333034356635663030376130366335323236
6135336632653162356336363736333238666531313565390a346539393135633638656565623934 3862353265376234343163306664313435626237636235310a636230353765613937613265363934
34333739323264623638623038343433376333646238396164616564646432353835663561366562 62653765613133363464343730353335303664343031613232373762666231636336353265663235
3832323739316235390a663661666334396538656163383838363631666265356334313938373263 3939393233363330390a323432336438633732653035373738303133633539623930613263316331
63376537313863653734333565363634383139396131363636366465356461376561353333313136 38383366316434336638353066666266323964653864383762343361646132356363303035303931
32343937363665346662623439303435386631623263663063313862373634396539656130303636 34313066336331356539333535303731393630386538336536646466653034663931343934626463
66623066656162633635643361316335383736333535363562386334663437333335336131616537 36326534666362376363336135626466353335616235633961666463396665373862393464633731
32633331313965353733656439646465616637336637626238653139356661353037623638653434 30376337346335333733656262663563303436323831663433363639363332383761326534323532
33333330303336623434313730373837373366343337343637326161656235663535643666663831 34373762303638306531663934663564336565356664636566393537623633346639336263663134
38343834343234316463626137363763393133643761653532626532633832353266353934646466 33633063633331376337376437356334623661616539653464323731613938643563333563353430
33613830666634393636633130626664323135366666306533613839633234656334396365373135 35333431346530383262643031393265303630653337306162663032643764313339383833643363
61303637376139616366346135353563383331303630613739636137666339363531366165393231 36393539336165373836313831663935626234326363646162396539383936623039376636326638
3334 33343435386332633561346161646338646133303365336630633665366139663634303131306663
36653933643830303532343861666236613064663665643662663533316362653332343334356463
39316239633139366633303235643334643135313739613532306265353938396165383735323436
35646234636265633632

View File

@@ -24,3 +24,5 @@ arch: "{{ 'arm64' if ansible_architecture == 'aarch64' else 'amd64' }}"
netcup_api_key: "{{ vault_netcup.api_key }}" netcup_api_key: "{{ vault_netcup.api_key }}"
netcup_api_password: "{{ vault_netcup.api_password }}" netcup_api_password: "{{ vault_netcup.api_password }}"
netcup_customer_id: "{{ vault_netcup.customer_id }}" netcup_customer_id: "{{ vault_netcup.customer_id }}"
cloudflare_api_token: "{{ vault_cloudflare.api_token }}"