Install NetBeans

wget -O - | bash -


if [ "$1" == "-j" ]; then
  # Java SE only
  # with all included programming languages

# install Java JDK
wget -q -O - | bash -

# download and install netbeans from homepage
wget -q ${URL} -O /tmp/
sudo bash /tmp/ --silent

# cleanup
rm /tmp/

# configure jdk
echo netbeans_jdkhome="/usr/lib/jvm/java-8-oracle" >> /usr/local/netbeans-8.2/etc/netbeans.conf

Add git repository

OPTIONAL: install MySQL driver
sudo apt-get install libmysql-java

DEP: fix ubuntu locale settings for german
sed -i 's|en_US.UTF-8|de_DE.UTF-8|g' /etc/scim/global

DEP: disable compiz effects (Visual Effects (System > Preferences > Appearance > Visual Effects => none)
metacity --replace &

Fix bold fonts under Linux
sudo apt-get remove -y fonts-unfonts-core

Ansible role
git clone /tmp/ansible
cd /tmp/ansible/
export ANSIBLE_ROLES_PATH=$(pwd)/roles
ansible-playbook -K /dev/stdin <Links - HowTo (re)configure JAVA JDK