Skip to content

Instantly share code, notes, and snippets.

@goffinet
Last active November 9, 2020 22:03
Show Gist options
  • Save goffinet/4e6766adeae0d1e67df28ff5bae39d8d to your computer and use it in GitHub Desktop.
Save goffinet/4e6766adeae0d1e67df28ff5bae39d8d to your computer and use it in GitHub Desktop.
Quick-and-dirt ansible installation by repo for Centos / Debian / Ubuntu
#!/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