- Hide the dock. It's valuable screen space. At least move it to the left or right side, as vertical is more valuable.
- Use Spotlight / Quicksilver to quickly open applications, search machine.
This file contains hidden or 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
- name: install python (CentOS 6) | |
yum: name={{item}} enablerepo=epel state=installed | |
with_items: | |
- PyYAML | |
- python-paramiko | |
- python-jinja2 | |
when: ansible_os_family == 'RedHat' and ansible_distribution_version.split('.')[0]|int == 6 | |
tags: python | |
- name: install python26 (CentOS 5) |
This file contains hidden or 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
--- | |
- name: ensure required packages are installed for Java 7 | |
apt: name=$item state=latest update_cache=yes | |
with_items: | |
- python-software-properties | |
- name: Add Java repository to sources | |
action: apt_repository repo='ppa:webupd8team/java' |
This file contains hidden or 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
- name: Java install | |
hosts: do | |
user: root | |
tasks: | |
- name: Create java repo list | |
action: shell echo 'deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main' >/etc/apt/sources.list.d/java.list | |
- name: Add repo key | |
action: command apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886 | |
- name: Accept java license | |
action: shell echo 'oracle-java7-installer shared/accepted-oracle-license-v1-1 select true' | debconf-set-selections |
This file contains hidden or 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
--- | |
- hosts: ubuntu | |
user: admin | |
sudo: yes | |
tasks: | |
- name: Test distribution | |
fail: msg="Not Ubuntu, aborting" | |
when_string: $ansible_distribution != "Ubuntu" |
This file contains hidden or 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
## Setup java | |
if [ `uname -m` == 'x86_64' ]; then | |
PATH="/usr/lib64/jvm/java-7-oracle/jre/bin/" | |
JAVA_HOME="/usr/lib64/jvm/java-7-oracle/" | |
else | |
PATH="/usr/lib/jvm/java-7-oracle/jre/bin/" | |
JAVA_HOME="/usr/lib/jvm/java-7-oracle/" | |
fi |
NewerOlder