Skip to content

Instantly share code, notes, and snippets.

@cmendible
Last active May 21, 2019 18:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cmendible/696bc74bfd123924bd255834aeedb340 to your computer and use it in GitHub Desktop.
Save cmendible/696bc74bfd123924bd255834aeedb340 to your computer and use it in GitHub Desktop.
Script to Install Azure CLI and Ansible on Ubuntu
#!/bin/bash
# Install Azure CLI
AZ_REPO=$(lsb_release -cs)
echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $AZ_REPO main" | sudo tee /etc/apt/sources.list.d/azure-cli.list
curl -L https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
sudo apt-get install -y apt-transport-https
sudo apt-get update && sudo apt-get install -y azure-cli
# Install Ansible
sudo apt-get update && sudo apt-get install -y libssl-dev libffi-dev python-dev python-pip
sudo pip install ansible[azure]
@cmendible
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment