Last active
May 21, 2019 18:52
-
-
Save cmendible/696bc74bfd123924bd255834aeedb340 to your computer and use it in GitHub Desktop.
Script to Install Azure CLI and Ansible on Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Script is based on: