Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Install Ansible and tools from Devel
#!/usr/bin/env bash
# TODO: Rewrite that as Ansible Playbook maybe for vagrant:ansible_local
# Installing Basic Utilitys
sudo apt-get install nano dnsutils
# Installing git
sudo apt-get install git -y
# Installing Ansible over PPA
sudo apt-get install software-properties-common -y
sudo apt-add-repository ppa:ansible/ansible -y
sudo apt-get update -y
#sudo apt-get install ansible -y
# Installing Devel of Ansible
sudo -H pip install git+git://
# Installing Kerberos Support
sudo export DEBIAN_FRONTEND=noninteractive apt-get install krb5-user -y
sudo export DEBIAN_FRONTEND=noninteractive apt-get install libkrb5-dev -y
# Installing Phyton Kerberos Support
sudo apt-get install python-dev python-pip libkrb5-dev -y
pip install 'pywinrm[kerberos]'
# Install HP Comware 7 Python Lib from Source
# Requirements for PIP Packages
sudo apt install libxml2-dev libxslt1-dev python-dev zlib1g-dev libffi-dev libssl-dev -y
#Upgrade Paramiko needed for pyhepcw7
sudo pip install paramiko --upgrade
#Install netaddr so we can use ipaddr filter in ansible
sudo pip install netaddr
# Fetch Repo and Install
git clone
cd pyhpecw7
sudo python install
cd ..
sudo rm -r -f pyhpecw7
# Installing pyvmomi to support managing VMWare
sudo pip install pyvmomi
# Installing vmware vSphere CLI
# !!!! Maybe we dont need this, use SSH !!!! - Service need to be enable on the ESX Host
# TODO:: Need to do this Manual, Maybe Host it on a Webserver to Download files
# cp /opt/it-infra/vagrant-provisioning/fj-v-ansible1/VMware-vSphere-CLI-6.5.0-4566394.x86_64.tar.gz ~/vmwareclie.tar.gz
# cd ~
# tar -xzf VMware-vSphere-CLI-6.5.0-4566394.x86_64.tar.gz
# TODO:: See if we can Automate that
# vmware-vsphere-cli-distrib/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.