From ffd25cdb04f6a40bc9b95afd507042717b2f7fc5 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Thu, 10 Jul 2025 10:36:10 +0300 Subject: Generate specific dhclient.conf to coerce the ISP to offer the same IP --- tasks/general.yml | 15 +++++++++++++++ tasks/network.yml | 8 ++++++++ 2 files changed, 23 insertions(+) (limited to 'tasks') diff --git a/tasks/general.yml b/tasks/general.yml index e9c1ef3..902d6c4 100644 --- a/tasks/general.yml +++ b/tasks/general.yml @@ -43,3 +43,18 @@ service: name: auditd state: started + +- name: Set up crontab + template: + src: etc_crontab.j2 + dest: /etc/crontab + owner: root + group: wheel + mode: "0644" + register: etc_crontab + +- name: Restart cron + service: + name: cron + state: restarted + when: etc_crontab.changed diff --git a/tasks/network.yml b/tasks/network.yml index 45f44e6..dbfa43c 100644 --- a/tasks/network.yml +++ b/tasks/network.yml @@ -142,3 +142,11 @@ name: do_dyndns state: restarted when: not do_dyndns_start.changed and (do_dyndns_sh.changed or do_dyndns_rc.changed) + +- name: Install gen_dhclient_conf.sh + template: + src: usr_local_bin_gen_dhclient_conf.sh.j2 + dest: /usr/local/bin/gen_dhclient_conf.sh + owner: root + group: wheel + mode: "0755" -- cgit v1.3