- name: java_profile config shell: /bin/echo {{ item }} >> /etc/profile with_items: - export JAVA_HOME=/usr/local/java - export JRE_HOME=/usr/local/java/jre - export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib:$CLASSPATH - export PATH=$JAVA_HOME/bin:$PATH