update nameserver playbook to setup for debian bullseye, and add new cubox to inventory
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user