fix zonedit dynamic ip for root xai-corp

This commit is contained in:
2023-09-19 22:26:11 -04:00
parent bfd4f6458f
commit ce77a5d779
9 changed files with 61 additions and 18 deletions

View File

@@ -9,9 +9,17 @@
- cron
when: ansible_os_family == "Debian"
- name: create zone edit cronjob
- name: xai-corp.net zone edit cronjob
cron:
name: zoneedit
name: xai-corp.net
minute: "*/35"
user: root
job: 'IP=`curl -s http://api.ipify.org` && wget -O - --http-user=rmorgan15 --http-passwd=D422B334D3768ACD "https://dynamic.zoneedit.com/auth/dynamic.html?host=xai-corp.net&dnsto=$IP" &>/dev/null'
cron_file: zoneedit
- name: test.xai-corp.net zone edit cronjob
cron:
name: test.xai-corp.net
minute: "*/45"
user: root
job: 'IP=`curl -s http://api.ipify.org` && wget -O - --http-user=rmorgan15 --http-passwd=D422B334D3768ACD "https://dynamic.zoneedit.com/auth/dynamic.html?host=test.xai-corp.net&dnsto=$IP" &>/dev/null'