Created
October 4, 2025 17:17
-
-
Save HauptJ/e373fe0a8c555f0b98e72d2dd22b6753 to your computer and use it in GitHub Desktop.
Bash script to install Ansible on Fedora
This file contains hidden or 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