aboutsummaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorEugene Triguba <eugenetriguba@gmail.com>2022-09-04 17:02:35 -0400
committerEugene Triguba <eugenetriguba@gmail.com>2022-09-04 17:02:35 -0400
commit9cbca7991457b05bcfcc5017060437dd3af489a5 (patch)
treecebeeaebd4ad613bea739db8fadc1d630f43724f /install
parentAdd bsd updates (diff)
downloaddotfiles-9cbca7991457b05bcfcc5017060437dd3af489a5.zip
Convert from src/ to roles structure
Diffstat (limited to 'install')
-rwxr-xr-xinstall40
1 files changed, 0 insertions, 40 deletions
diff --git a/install b/install
deleted file mode 100755
index 6f75951..0000000
--- a/install
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/bin/sh
-set -e
-
-repo_dir=$(realpath $(dirname "$0"))
-
-escalate() {
- if [ -x "$(command -v sudo)" ]; then
- sudo $@
- elif [ -x "$(command -v doas)" ]; then
- doas $@
- else
- echo "No sudo or doas found to escalate permissions"
- exit 1
- fi
-}
-
-if ! [ -x "$(command -v ansible-playbook)" ]; then
- case "$(uname -s)" in
- FreeBSD)
- escalate pkg install --yes sysutils/ansible
- ;;
- Linux)
- source /etc/os-release
-
- if [ "$ID" != "fedora" ]; then
- echo "[!] Unsupported Linux Distrobution"
- exit 1
- fi
-
- escalate dnf install --assumeyes ansible
- ;;
- *)
- echo "[!] Unsupported OS"
- exit 1
- ;;
- esac
-fi
-
-export ANSIBLE_LOCALHOST_WARNING=false
-ansible-playbook --ask-become-pass "$repo_dir/src/setup.yaml"