Add a route53 DDNS client courtesy of some guy, set it up to update a record occasionally

This commit is contained in:
Salt 2022-04-01 14:59:26 -05:00
parent 82bfa04e75
commit 050112a62a
2 changed files with 37 additions and 0 deletions

View File

@ -15,6 +15,7 @@
with_items: with_items:
- app/gulagbot.yml - app/gulagbot.yml
- app/ddclient.yml - app/ddclient.yml
- app/ddns-route53.yml
tags: [ always ] tags: [ always ]
roles: roles:
- role: backup - role: backup

View File

@ -0,0 +1,36 @@
#!/usr/bin/env ansible-playbook
# vim:ft=ansible:
- name: docker deploy ddns-route53
docker_container:
name: ddns-route53
state: started
image: crazymax/ddns-route53:latest
restart_policy: unless-stopped
pull: yes
env:
TZ: America/Chicago
SCHEDULE: "*/30 * * * *"
LOG_LEVEL: "info"
LOG_JSON: "false"
DDNSR53_CREDENTIALS_ACCESSKEYID: !vault |
$ANSIBLE_VAULT;1.1;AES256
61656634313362376137313363393932363234353164333639306237663038316334316364386530
3462393862313039303837333261373966303239636361330a356234346166646632646138663564
62376365323230643162333337663337386138306139616237646162623532643063363534366235
3435376135396237310a373764663639323932373835336536316234313235643138376638643363
64666538336631666130353462346232323566363362613264386166313532653331
DDNSR53_CREDENTIALS_SECRETACCESSKEY: !vault |
$ANSIBLE_VAULT;1.1;AES256
32356638323261373239653634626232373033383533643962333835346535623631653962643332
3965356666353464333334353863373163356361663634350a333834373661323064393261623039
34393235646633643835393661393832356663306663343835326438666264646539646134613534
6163303638613433640a663935346664306636646262653365353464666337303764323532383538
31333965373134346639386533623263343336386233323034656134303933643337623032376334
6535613834656563623831363835346665623737346536353030
DDNSR53_ROUTE53_HOSTEDZONEID: "Z09582792UG7TATE5YWLE"
DDNSR53_ROUTE53_RECORDSSET_0_NAME: "home.ddns.mgmt.desu.ltd."
DDNSR53_ROUTE53_RECORDSSET_0_TYPE: "A"
DDNSR53_ROUTE53_RECORDSSET_0_TTL: "300"
volumes:
- /data/ddns-route53:/etc/ddns-route53
tags: [ docker, ddns-route53 ]