andreychernih/railsbox

View on GitHub
templates/shell/1-install-ansible.sh

Summary

Maintainability
Test Coverage
#!/bin/bash

set -e

if ! command -v ansible >/dev/null; then
  sudo apt-get update

  sudo add-apt-repository -y ppa:ansible/ansible
  sudo apt-get update
  sudo apt-get install -y ansible
fi