Skip to content

Commit

Permalink
Merge pull request #64 from TechDufus/roles/sshfs
Browse files Browse the repository at this point in the history
Adding role to install sshfs
  • Loading branch information
TechDufus authored Nov 17, 2023
2 parents c558c2c + 73383ac commit a5f4a66
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions group_vars/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ default_roles:
- ruby
- rust
- ssh
- sshfs
- terraform
- tmate
- tmux
Expand Down
1 change: 1 addition & 0 deletions roles/bash/files/bash/neovim_functions.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env bash

function nisshfs() {
if [ -z $1 ]; then echo "nisshfs <server> [remote_dir]"; return 1; fi
local remote_dir='/'
if [ ! -d ~/.sshfs ]; then mkdir ~/.sshfs > /dev/null 2>&1; fi
if [ ! -d ~/.sshfs/$1 ]; then mkdir ~/.sshfs/$1 > /dev/null 2>&1; fi
Expand Down
Empty file added roles/sshfs/tasks/main.yml
Empty file.
6 changes: 6 additions & 0 deletions roles/sshfs/tasks/ubuntu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
- name: SSHFS | Install sshfs
ansible.builtin.apt:
name: sshfs
state: present
become: true

0 comments on commit a5f4a66

Please sign in to comment.