Skip to content

Instantly share code, notes, and snippets.

View greenbrian's full-sized avatar

Brian Green greenbrian

View GitHub Profile
@masahide
masahide / main.yml
Created August 17, 2013 09:09
ansibleでansibleをいれるplaybookを作る ref: http://qiita.com/yamasaki-masahide/items/45ef3fd3dd5d535407a3
- 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)
@owainlewis
owainlewis / java7.yml
Created July 24, 2013 10:45
Install Java 7 with Ansible on Ubuntu Linux
---
- 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'
@fclairamb
fclairamb / install_java.yml
Created April 7, 2013 15:58
Ansible playbook to install Java automatically on Debian. I'm pretty sure you have to read and accept the java license before installing this. Using apt module surely is better but it requires to have python-apt installed.
- 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
@dbarlett
dbarlett / ansible-standalone.yml
Last active January 11, 2020 22:57
Standalone Ansible playbook for (X)ubuntu post-install tasks.
---
- hosts: ubuntu
user: admin
sudo: yes
tasks:
- name: Test distribution
fail: msg="Not Ubuntu, aborting"
when_string: $ansible_distribution != "Ubuntu"
@marktheunissen
marktheunissen / gist:3758037
Created September 20, 2012 20:06
Mac Productivity Brown Bag

Mac Productivity

Apple OSX General

System

  • 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.
@dz0ny
dz0ny / 99java
Created July 7, 2012 10:23
Install java,flash,mp3,mp4 to Chromium OS
## 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