Fix wonky SSHFS fstab logic.

This commit is contained in:
Hyperling 2021-02-11 12:22:42 -06:00
parent bdb161376b
commit 3676f2dc07

View File

@ -13,6 +13,11 @@
register: sshfs_test
ignore_errors: yes
when: not leet_drive_details.stat.exists
- name: General | Account Management | Mounts | SSHFS Already Working
shell: "echo SUCCESS"
register: sshfs_test
when: leet_drive_details.stat.exists
- name: General | Account Management | Mounts | Create 1337 Folder
@ -63,8 +68,7 @@
marker: '# {mark} MANAGED BY ANSIBLE | 1337 Share'
state: present
backup: yes
when: ansible_system == "Linux" and
(not sshfs_test.failed or leet_drive_details.stat.exists)
when: ansible_system == "Linux" and not sshfs_test.failed
- name: General | Account Management | Mounts | Mount All (Linux)
shell: mount -a