aboutsummaryrefslogtreecommitdiffstats
path: root/roles/host_test
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2026-05-13 00:13:57 +0300
committerJan Tuomi <jan@jantuomi.fi>2026-05-16 18:42:27 +0300
commitb5860daf11ac353049cb1654b9414a129e5cfb96 (patch)
tree87ed89711e4f0e85ace0a97fa123199152c67302 /roles/host_test
parent4715a28fdcd87440400d17154bfa361d99db29cc (diff)
Rework
Diffstat (limited to 'roles/host_test')
-rw-r--r--roles/host_test/handlers/main.yml2
-rw-r--r--roles/host_test/tasks/main.yml13
2 files changed, 15 insertions, 0 deletions
diff --git a/roles/host_test/handlers/main.yml b/roles/host_test/handlers/main.yml
new file mode 100644
index 0000000..46fcbde
--- /dev/null
+++ b/roles/host_test/handlers/main.yml
@@ -0,0 +1,2 @@
+- name: Apply rc.conf
+ shell: service kld start; service netif restart && service routing restart
diff --git a/roles/host_test/tasks/main.yml b/roles/host_test/tasks/main.yml
new file mode 100644
index 0000000..1246073
--- /dev/null
+++ b/roles/host_test/tasks/main.yml
@@ -0,0 +1,13 @@
+- name: Set up /etc/rc.conf
+ template:
+ src: "{{ playbook_dir }}/roles/host/templates/etc_rc.conf.j2"
+ dest: /etc/rc.conf
+ owner: root
+ group: wheel
+ mode: "0644"
+ vars:
+ is_prod: false
+ notify: Apply rc.conf
+
+- name: Flush handlers
+ meta: flush_handlers