Move my home server over to linfi.

This commit is contained in:
Tom Alexander
2024-10-13 22:49:12 -04:00
parent d2c1f5c94f
commit d2ff39b5e6
17 changed files with 61 additions and 24 deletions

View File

@@ -1,6 +1,6 @@
- name: Install loader.conf
copy:
src: "files/{{ item }}_loader.conf"
template:
src: "templates/{{ item }}_loader.conf.j2"
dest: "/boot/loader.conf.d/{{ item }}.conf"
mode: 0644
owner: root
@@ -20,8 +20,8 @@
dest: /usr/local/bin/launch_linfi
- name: Install rc script
copy:
src: "files/{{ item.src }}"
template:
src: "templates/{{ item.src }}.j2"
dest: "/usr/local/etc/rc.d/{{ item.dest|default(item.src) }}"
owner: root
group: wheel
@@ -38,4 +38,13 @@
group: wheel
loop:
- linfi
- name: Install service configuration
template:
src: "templates/{{ item }}_rc.conf.j2"
dest: "/etc/rc.conf.d/{{ item }}"
mode: 0644
owner: root
group: wheel
loop:
- devmatch

View File

@@ -1,2 +1,2 @@
- import_tasks: tasks/common.yaml
# when: foo is defined
when: linfi is defined and linfi.enabled