Last active
December 9, 2024 03:07
-
-
Save HauptJ/34cc74cd2cb32ac648fdee28c209e003 to your computer and use it in GitHub Desktop.
Bash script to install Ansible on Fedora
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Ensure we have root permissions | |
if [[ $(/usr/bin/id -u) -ne 0 ]]; then | |
echo "Not running as root" | |
exit | |
fi | |
dnf update -y | |
dnf install ansible -y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment