update nameserver playbook to setup for debian bullseye, and add new cubox to inventory

This commit is contained in:
2022-08-21 08:59:43 -04:00
parent be6f184b81
commit 42c80b4894
4 changed files with 17 additions and 7 deletions

View File

@@ -1,10 +1,18 @@
---
# create cronjob to set dynamic ip
- name: Install required packages
apt:
name: "{{ item }}"
state: latest
with_items:
- cron
when: ansible_os_family == "Debian"
- name: create zone edit cronjob
cron:
name: zoneedit
minute: "*/30"
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'
cron_file: zoneedit