aboutsummaryrefslogtreecommitdiffstats
path: root/tasks
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2025-09-29 00:53:24 +0200
committerJan Tuomi <jan@jantuomi.fi>2025-09-29 00:53:24 +0200
commit7c5eae9294994e59a5176eba21093ecd6cdfcf63 (patch)
treea3d7d0a34d6e4b9a773cd85b99afc9eca5b5bb9c /tasks
parentcc1b02f99e457d2a5a440698e9bae1ca30f408e1 (diff)
Improve jails
Diffstat (limited to 'tasks')
-rw-r--r--tasks/general.yml9
-rw-r--r--tasks/network.yml23
2 files changed, 10 insertions, 22 deletions
diff --git a/tasks/general.yml b/tasks/general.yml
index 9361217..46f04a1 100644
--- a/tasks/general.yml
+++ b/tasks/general.yml
@@ -7,6 +7,7 @@
- dma
- jq
- curl
+ - bash
- name: Set up periodic.conf
template:
@@ -57,3 +58,11 @@
name: cron
state: restarted
when: etc_crontab.changed
+
+- name: Install logto
+ template:
+ src: usr_local_bin_logto.sh.j2
+ dest: /usr/local/bin/logto
+ owner: root
+ group: wheel
+ mode: "0755"
diff --git a/tasks/network.yml b/tasks/network.yml
index a8749a7..15c4494 100644
--- a/tasks/network.yml
+++ b/tasks/network.yml
@@ -12,7 +12,7 @@
when: resolv_conf.changed
- name: Restart networking if interface configuration changed
- shell: service netif restart && service routing restart && service dhclient restart wan0
+ shell: service netif restart && service routing restart
when: rc_conf.changed or resolv_conf.changed
- name: Set up sshd
@@ -83,24 +83,3 @@
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)