Variablize FreeBSD's loading of fusefs.
This commit is contained in:
parent
0d09ef4963
commit
67cea8ed34
@ -27,6 +27,12 @@
|
||||
when: ansible_distribution == "Archlinux"
|
||||
|
||||
|
||||
#- name: General | Facts | Service | FreeBSD
|
||||
# set_fact:
|
||||
# when: ansible_system == "FreeBSD"
|
||||
- name: General | Facts | Service | Non-FreeBSD
|
||||
set_fact:
|
||||
load_fusefs: "echo ''"
|
||||
when: ansible_system != "FreeBSD"
|
||||
|
||||
- name: General | Facts | Service | FreeBSD
|
||||
set_fact:
|
||||
load_fusefs: "kldload fusefs"
|
||||
when: ansible_system == "FreeBSD"
|
@ -9,7 +9,7 @@
|
||||
mode: '0755'
|
||||
|
||||
- name: General | Account Management | Mounts | Enable SSHFS (FreeBSD)
|
||||
shell: "kldload fusefs"
|
||||
shell: "{{ load_fusefs }}"
|
||||
ignore_errors: yes
|
||||
when: ansible_system == "FreeBSD"
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
user: root
|
||||
name: "1337 SSHFS"
|
||||
special_time: reboot
|
||||
job: "kldload fusefs && {{ sshfs_leet_cmd }}"
|
||||
job: "{{ load_fusefs }} && {{ sshfs_leet_cmd }}"
|
||||
state: absent
|
||||
disabled: no
|
||||
when: ansible_system == "FreeBSD"
|
||||
|
Loading…
x
Reference in New Issue
Block a user