Last active
November 9, 2020 22:03
-
-
Save goffinet/4e6766adeae0d1e67df28ff5bae39d8d to your computer and use it in GitHub Desktop.
Quick-and-dirt ansible installation by repo for Centos / Debian / Ubuntu
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
#!/bin/bash | |
#curl -L https://git.io/fjWan -o install-ansible.sh && bash -x install-ansible.sh | |
yum -y install epel-release && yum -y install ansible || \ | |
export DEBIAN_FRONTEND="noninteractive" ; \ | |
apt-add-repository -y ppa:ansible/ansible ; \ | |
apt-get update ; \ | |
apt-get upgrade --yes --force-yes -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" ; \ | |
apt-get -y install ansible |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment