Skip to content

Instantly share code, notes, and snippets.

@HauptJ
Created October 4, 2025 17:17
Show Gist options
  • Save HauptJ/e373fe0a8c555f0b98e72d2dd22b6753 to your computer and use it in GitHub Desktop.
Save HauptJ/e373fe0a8c555f0b98e72d2dd22b6753 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