refactor ansible code in to ansible-2.0 folder, and created space for ansible-2.10
This commit is contained in:
10
ansible-2.0/roles/dynamic-ip/tasks/main.yml
Normal file
10
ansible-2.0/roles/dynamic-ip/tasks/main.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
---
|
||||
# create cronjob to set dynamic ip
|
||||
|
||||
- name: create zone edit cronjob
|
||||
cron:
|
||||
name: zoneedit
|
||||
minute: "*/30"
|
||||
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