Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/andreijiroh-dev/bootstrap-scripts-linux. Shell scripts and Ansible playbooks to setup a fresh Linux install post-install.
Something went wrong. Try again.
552 B · 24 lines
at main
123456789101112131415161718192021222324#!/usr/bin/env bash# Copyright (c) Andrei Jiroh Halili# SPDX-License-Identifier: MPL-2.0# # This script installs ansible and OpenSSH cleint+server on Arch# in order to run the playbooks.set -eif [[ $DEBUG != "" ]]; then set -xfiif command -v ansible >> /dev/null; then echo "[setup-ansible] Looking like ansible package is installed, skipping script" exit 0fiecho "[setup-ansible] Installing via pacman"if [ $EUID != "0" ]; then SUDO=${SUDO:-"sudo"} $SUDO pacman -Sy ansible --noconfirmelse pacman -Sy ansible --noconfirmfi