Skip to content

Instantly share code, notes, and snippets.

@asears
Created June 28, 2016 20:05
Show Gist options
  • Save asears/59e6da34228c8ce4334a486960475d44 to your computer and use it in GitHub Desktop.
Save asears/59e6da34228c8ce4334a486960475d44 to your computer and use it in GitHub Desktop.
!/bin/bash
yum -y update
yum -y upgrade centos
mkdir -p /opt/ansible
cd /opt/ansible/
wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
yum -y install epel-release-6-8.noarch.rpm
yum repolist
yum -y update && yum -y install ansible
# todo dynamic filename
yum load-transaction /tmp/yum_save_tx-2016-06-28-13-42DZgWwD.yumtx
sudo easy_install pip
pip -V
cd /etc/ansible/
#vi /etc/ansible/hosts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment