From 9137f6b7626cac7e20e2e728d4594b6200fad63d Mon Sep 17 00:00:00 2001 From: Hyperling Date: Wed, 3 Feb 2021 12:50:29 -0600 Subject: [PATCH] Exclude FreeBSD for now. --- tasks/general/acct_mgmt/mounts.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tasks/general/acct_mgmt/mounts.yml b/tasks/general/acct_mgmt/mounts.yml index 292f352..c9e84d4 100644 --- a/tasks/general/acct_mgmt/mounts.yml +++ b/tasks/general/acct_mgmt/mounts.yml @@ -7,6 +7,7 @@ state: directory mode: '0755' +# Combine these to be blockinfile again - name: General | Account Management | Mounts | Create 1337 fstab Entry lineinfile: path: /etc/fstab @@ -14,6 +15,7 @@ line: "ling@leet: /mnt/leet fuse.sshfs defaults,_netdev,allow_other,delay_connect 0 0" state: present backup: yes + when: ansible_system = "Linux" - name: General | Account Management | Mounts | Create 1337 fstab Comment lineinfile: @@ -22,8 +24,12 @@ line: '# MANAGED BY ANSIBLE | Leet Share' state: present insertbefore: '^ling@leet' + when: ansible_system = "Linux" - name: General | Account Management | Mounts | Mount All shell: mount -a args: warn: false + when: ansible_system = "Linux" + +# Add @reboot cron job for FreeBSD, fstab does not like fuse or sshfs as mount type