diff options
| author | Eugene Triguba <eugenetriguba@gmail.com> | 2022-09-04 17:02:35 -0400 |
|---|---|---|
| committer | Eugene Triguba <eugenetriguba@gmail.com> | 2022-09-04 17:02:35 -0400 |
| commit | 9cbca7991457b05bcfcc5017060437dd3af489a5 (patch) | |
| tree | cebeeaebd4ad613bea739db8fadc1d630f43724f /bootstrap | |
| parent | Add bsd updates (diff) | |
| download | dotfiles-9cbca7991457b05bcfcc5017060437dd3af489a5.zip | |
Convert from src/ to roles structure
Diffstat (limited to '')
| -rwxr-xr-x | bootstrap (renamed from install) | 14 |
1 files changed, 2 insertions, 12 deletions
@@ -1,29 +1,22 @@ #!/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" + echo "sudo not 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" + echo "[!] Unsupported Linux Distribution" exit 1 fi @@ -35,6 +28,3 @@ if ! [ -x "$(command -v ansible-playbook)" ]; then ;; esac fi - -export ANSIBLE_LOCALHOST_WARNING=false -ansible-playbook --ask-become-pass "$repo_dir/src/setup.yaml" |