summaryrefslogtreecommitdiff
path: root/roles/tls
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2026-08-28 15:23:36 +0100
committerJoe Carstairs <me@joeac.net>2026-08-28 15:23:36 +0100
commit4931117343a3105749b4a3698dd24c824a505441 (patch)
treefd4c10ac16fc37e694bea8fced8eb5aea55cc966 /roles/tls
parent2a15e073bceaaf0765343dd57931c85cada6f89c (diff)
ovh-ify dyndns
Diffstat (limited to 'roles/tls')
-rw-r--r--roles/tls/files/ovh-dns-credentials.ini14
-rw-r--r--roles/tls/tasks/main.yml2
-rw-r--r--roles/tls/templates/ovh-dns-credentials.ini4
3 files changed, 5 insertions, 15 deletions
diff --git a/roles/tls/files/ovh-dns-credentials.ini b/roles/tls/files/ovh-dns-credentials.ini
deleted file mode 100644
index 210a403..0000000
--- a/roles/tls/files/ovh-dns-credentials.ini
+++ /dev/null
@@ -1,14 +0,0 @@
-$ANSIBLE_VAULT;1.2;AES256;ansible
-37333731336135353732336462623564633235633561336130376361646266363930626230616230
-6261356563343235353865663836643830616561613132320a643933303936343361336634313363
-38646163363939333662393666373335346565666236363163366137616137343734303531346531
-6135343839646662660a383339303664383235656431303333623661343638663631646131393164
-34666135616533656561626131323631303637663062363266663934666634386565656339663331
-65663135303661636564386266383333326536303161636230363461313131643664663739616434
-63366335623935656337313735623134323530393636373639633863346265343831363130623861
-30316233336335653233333633333461646364656435333936613733393835343931346536366430
-31333634346362346234613137623133633731353432363037306235393131356665323761643835
-37333562393362333033313932353363356536626565373939333230303435326635636639343262
-30366466636362653536613635653034313765646238383737386636306134633135326365333065
-33656335316330326439313235323862393134663062643562636434343839323232356661656633
-39653361313235396436366564366131313731346436346236356534363937303337
diff --git a/roles/tls/tasks/main.yml b/roles/tls/tasks/main.yml
index f637ff5..caf07b2 100644
--- a/roles/tls/tasks/main.yml
+++ b/roles/tls/tasks/main.yml
@@ -28,7 +28,7 @@
certbot renew --non-interactive
- name: Install OVH DNS credentials
- ansible.builtin.copy:
+ ansible.builtin.template:
src: ovh-dns-credentials.ini
dest: /etc/ovh-dns-credentials.ini
mode: "400"
diff --git a/roles/tls/templates/ovh-dns-credentials.ini b/roles/tls/templates/ovh-dns-credentials.ini
new file mode 100644
index 0000000..d8f9522
--- /dev/null
+++ b/roles/tls/templates/ovh-dns-credentials.ini
@@ -0,0 +1,4 @@
+dns_ovh_endpoint = {{ ovhcloud_endpoint }}
+dns_ovh_application_key = {{ ovhcloud_application_key }}
+dns_ovh_application_secret = {{ ovhcloud_application_secret }}
+dns_ovh_consumer_key = {{ ovhcloud_consumer_key }}