use more variables instead of hard-coding (fixes #3)
This commit is contained in:
parent
d48064a7e3
commit
04686de59c
15 changed files with 101 additions and 70 deletions
|
|
@ -7,18 +7,18 @@
|
|||
name: curl
|
||||
state: present
|
||||
|
||||
- name: dyndns - Copy hosts.jtbx.de dynDNS script
|
||||
- name: dyndns - Copy dynDNS script
|
||||
become: yes
|
||||
copy:
|
||||
src: "{{ role_path }}/files/ddns-hosts.sh"
|
||||
template:
|
||||
src: "{{ role_path }}/templates/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
|
||||
- name: "dyndns - Create cronjob for {{ ddns_domain }} dynDNS script"
|
||||
become: yes
|
||||
cron:
|
||||
name: "hosts.jtbx.de dynDNS"
|
||||
name: "{{ ddns_domain }} dynDNS"
|
||||
minute: "*/5"
|
||||
hour: "*"
|
||||
job: "/usr/local/bin/ddns-hosts.sh > /dev/null"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue