From 3676f2dc07c228da802df8d026dcba3929765339 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Thu, 11 Feb 2021 12:22:42 -0600 Subject: [PATCH] Fix wonky SSHFS fstab logic. --- tasks/general/acct_mgmt/mounts.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tasks/general/acct_mgmt/mounts.yml b/tasks/general/acct_mgmt/mounts.yml index 3550c50..c3f512e 100644 --- a/tasks/general/acct_mgmt/mounts.yml +++ b/tasks/general/acct_mgmt/mounts.yml @@ -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