Skip to content

Commit

Permalink
Just install ansible. it's far easier.
Browse files Browse the repository at this point in the history
  • Loading branch information
markmandel committed Mar 17, 2015
1 parent 0afbd26 commit 108d2bd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 22 deletions.
14 changes: 10 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
#!/bin/sh
sudo apt-get install git python python-yaml python-jinja2 aptitude
sudo apt-get install software-properties-common
sudo apt-add-repository ppa:ansible/ansible
sudo apt-get update
sudo apt-get install ansible git
cd ~
mkdir workspace
cd workspace
git clone git@github.com:markmandel/dotfiles.git

if [ ! -d "~/workspace/dotfiles" ]; then
mkdir workspace
cd workspace
git clone git@github.com:markmandel/dotfiles.git
fi
18 changes: 0 additions & 18 deletions up.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,6 @@ dot_files="$workspace/dotfiles"

if [ -d $workspace ]; then

#provision ansible itself
if [ ! -d $ansible ]; then
echo "Cloning Ansible..."
git clone $ansible_git $ansible --recursive
else
echo "Updating Ansible..."
cd $ansible
git pull --rebase
git submodule update --init --recursive
fi

echo "Setting up Ansible in $ansible"
#for some reason have to go one level in. Don't ask, it works.
cd $ansible/hacking
source env-setup

ansible --version

#self update
echo "Updating Dotfiles..."
cd $dot_files
Expand Down

0 comments on commit 108d2bd

Please sign in to comment.