[GIT] refactor submodules: add all to own repo
This commit is contained in:
commit
be2b9bf3c0
27 changed files with 3311 additions and 0 deletions
24
tasks/dyndns.yml
Normal file
24
tasks/dyndns.yml
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
---
|
||||
# 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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue