From 2eb64ac9d2b201852c42ddb70f4dfc4883e5869a Mon Sep 17 00:00:00 2001 From: Hyperling Date: Sun, 7 Feb 2021 12:53:10 -0600 Subject: [PATCH] Do test on a different folder. Prevents non-sshfs devices from even having /mnt/leet created. --- tasks/general/acct_mgmt/mounts.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tasks/general/acct_mgmt/mounts.yml b/tasks/general/acct_mgmt/mounts.yml index c248f7b..d4cfdf4 100644 --- a/tasks/general/acct_mgmt/mounts.yml +++ b/tasks/general/acct_mgmt/mounts.yml @@ -1,8 +1,14 @@ --- # Mount shares that all systems should have. +- name: General | Account Management | Mounts | Create Test Folder + file: + path: "/mnt/test" + state: directory + mode: '0755' + - name: General | Account Management | Mounts | Test SSHFS - shell: "sshfs ling@leet: /mnt/leet -o allow_other,nonempty" + shell: "sshfs {{ leet_ssh }}: /mnt/test -o allow_other,nonempty" register: sshfs_test ignore_errors: yes