Variablize FreeBSD's loading of fusefs.

This commit is contained in:
Hyperling 2021-07-13 21:02:56 -05:00
parent 0d09ef4963
commit 67cea8ed34
3 changed files with 11 additions and 5 deletions

View File

@ -27,6 +27,12 @@
when: ansible_distribution == "Archlinux" when: ansible_distribution == "Archlinux"
#- name: General | Facts | Service | FreeBSD - name: General | Facts | Service | Non-FreeBSD
# set_fact: set_fact:
# when: ansible_system == "FreeBSD" load_fusefs: "echo ''"
when: ansible_system != "FreeBSD"
- name: General | Facts | Service | FreeBSD
set_fact:
load_fusefs: "kldload fusefs"
when: ansible_system == "FreeBSD"

View File

@ -9,7 +9,7 @@
mode: '0755' mode: '0755'
- name: General | Account Management | Mounts | Enable SSHFS (FreeBSD) - name: General | Account Management | Mounts | Enable SSHFS (FreeBSD)
shell: "kldload fusefs" shell: "{{ load_fusefs }}"
ignore_errors: yes ignore_errors: yes
when: ansible_system == "FreeBSD" when: ansible_system == "FreeBSD"

View File

@ -6,7 +6,7 @@
user: root user: root
name: "1337 SSHFS" name: "1337 SSHFS"
special_time: reboot special_time: reboot
job: "kldload fusefs && {{ sshfs_leet_cmd }}" job: "{{ load_fusefs }} && {{ sshfs_leet_cmd }}"
state: absent state: absent
disabled: no disabled: no
when: ansible_system == "FreeBSD" when: ansible_system == "FreeBSD"