Skip to content

Commit

Permalink
Issue #1: Fix Ansible install/uninstall since PPA doesn't exist yet.
Browse files Browse the repository at this point in the history
  • Loading branch information
geerlingguy committed Apr 21, 2016
1 parent 5400de1 commit fcd0d19
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 7 deletions.
20 changes: 15 additions & 5 deletions scripts/ansible.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
#!/bin/bash -eux

# Install pip.
apt -y install python-setuptools python-dev
easy_install pip

# Install Ansible.
pip install ansible

# TODO: Switch to official apt repo after the following issue is resolved:
# https://github.com/ansible/ansible/issues/15524

# Install Ansible repository.
apt -y update && apt-get -y upgrade
apt -y install software-properties-common
apt-add-repository ppa:ansible/ansible
# apt -y update && apt-get -y upgrade
# apt -y install software-properties-common
# apt-add-repository ppa:ansible/ansible

# Install Ansible.
apt -y update
apt -y install ansible
# apt -y update
# apt -y install ansible
9 changes: 7 additions & 2 deletions scripts/cleanup.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
#!/bin/bash -eux

# Uninstall Ansible and remove PPA.
apt -y remove --purge ansible
apt-add-repository --remove ppa:ansible/ansible
# apt -y remove --purge ansible
# apt-add-repository --remove ppa:ansible/ansible

# Uninstall Ansible.
pip uninstall ansible

# Apt cleanup.
apt autoremove
apt update

Expand Down

0 comments on commit fcd0d19

Please sign in to comment.