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] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.
Script is based on: