Skip to content

Instantly share code, notes, and snippets.

@HauptJ
Last active December 9, 2024 03:07
Show Gist options
  • Save HauptJ/34cc74cd2cb32ac648fdee28c209e003 to your computer and use it in GitHub Desktop.
Save HauptJ/34cc74cd2cb32ac648fdee28c209e003 to your computer and use it in GitHub Desktop.
Bash script to install Ansible on Fedora
#!/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