Skip to content

Instantly share code, notes, and snippets.

@crizstian
Created April 12, 2019 18:39
Show Gist options
  • Save crizstian/642d769078d6f4688ac3bd7f331f7c88 to your computer and use it in GitHub Desktop.
Save crizstian/642d769078d6f4688ac3bd7f331f7c88 to your computer and use it in GitHub Desktop.
#!/bin/bash -e
export playbook=$1
sudo apt-get upgrade -y
sudo apt-get update
sudo apt-get install software-properties-common -y
sudo apt-add-repository ppa:ansible/ansible
sudo apt-get update
sudo apt-get install ansible -y
cd /var/tmp
sudo ansible-playbook -i "localhost," -c local $playbook
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment