diff options
Diffstat (limited to 'tasks/network.yml')
| -rw-r--r-- | tasks/network.yml | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/tasks/network.yml b/tasks/network.yml index d68344d..45f44e6 100644 --- a/tasks/network.yml +++ b/tasks/network.yml @@ -104,3 +104,41 @@ owner: root group: wheel mode: "0644" + +- name: Set up /usr/local/etc/do_dyndns_auth + template: + src: usr_local_etc_do_dyndns_auth.j2 + dest: /usr/local/etc/do_dyndns_auth + owner: root + group: wheel + mode: "0600" + +- name: Set up /usr/local/bin/do_dyndns.sh + template: + src: usr_local_bin_do_dyndns.sh.j2 + dest: /usr/local/bin/do_dyndns.sh + owner: root + group: wheel + mode: "0755" + register: do_dyndns_sh + +- name: Set up /usr/local/etc/rc.d/do_dyndns + template: + src: usr_local_etc_rc.d_do_dyndns.j2 + dest: /usr/local/etc/rc.d/do_dyndns + owner: root + group: wheel + mode: "0755" + register: do_dyndns_rc + +- name: Start do_dyndns + service: + name: do_dyndns + state: started + register: do_dyndns_start + +- name: Restart do_dyndns + service: + name: do_dyndns + state: restarted + when: not do_dyndns_start.changed and (do_dyndns_sh.changed or do_dyndns_rc.changed) |
