25 lines
586 B
YAML
25 lines
586 B
YAML
---
|
|
# Server/Dyndns: Setup dynDNS Script
|
|
|
|
- name: dyndns - Install needed tools
|
|
become: yes
|
|
package:
|
|
name: curl
|
|
state: present
|
|
|
|
- name: dyndns - Copy hosts.jtbx.de dynDNS script
|
|
become: yes
|
|
copy:
|
|
src: "{{ role_path }}/files/ddns-hosts.sh"
|
|
dest: /usr/local/bin/ddns-hosts.sh
|
|
owner: "{{ ansible_user_id }}"
|
|
group: "{{ ansible_user_id }}"
|
|
mode: 0775
|
|
- name: dyndns - Create cronjob for hosts.jtbx.de dynDNS script
|
|
become: yes
|
|
cron:
|
|
name: "hosts.jtbx.de dynDNS"
|
|
minute: "*/5"
|
|
hour: "*"
|
|
job: "/usr/local/bin/ddns-hosts.sh > /dev/null"
|