From 0d09ef4963953937ee86ee7964ce5076d7ea5172 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Tue, 13 Jul 2021 19:09:45 -0500 Subject: [PATCH] "Fix" SSHFS for FreeBSD. --- tasks/general/acct_mgmt/mounts.yml | 5 +++++ tasks/general/cron/root.yml | 2 +- tasks/general/software/services.yml | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/tasks/general/acct_mgmt/mounts.yml b/tasks/general/acct_mgmt/mounts.yml index 923f477..60b8439 100644 --- a/tasks/general/acct_mgmt/mounts.yml +++ b/tasks/general/acct_mgmt/mounts.yml @@ -8,6 +8,11 @@ state: directory mode: '0755' +- name: General | Account Management | Mounts | Enable SSHFS (FreeBSD) + shell: "kldload fusefs" + ignore_errors: yes + when: ansible_system == "FreeBSD" + - name: General | Account Management | Mounts | Test SSHFS shell: "sshfs {{ leet_ssh }}: /mnt/test -o allow_other" register: sshfs_test diff --git a/tasks/general/cron/root.yml b/tasks/general/cron/root.yml index 6701944..b07dabe 100644 --- a/tasks/general/cron/root.yml +++ b/tasks/general/cron/root.yml @@ -6,7 +6,7 @@ user: root name: "1337 SSHFS" special_time: reboot - job: "{{ sshfs_leet_cmd }}" + job: "kldload fusefs && {{ sshfs_leet_cmd }}" state: absent disabled: no when: ansible_system == "FreeBSD" diff --git a/tasks/general/software/services.yml b/tasks/general/software/services.yml index 2a5e609..bd7fee2 100644 --- a/tasks/general/software/services.yml +++ b/tasks/general/software/services.yml @@ -13,7 +13,7 @@ ## SSHFS ## -- name: General | Software | Services | Enable SSHD (Linux?) +- name: General | Software | Services | Enable SSHFS (FreeBSD) service: name: fusefs pattern: fusefs