Skip to content

Instantly share code, notes, and snippets.

@higarin
Created November 19, 2015 00:25
Show Gist options
  • Save higarin/63b5274462914036b0ad to your computer and use it in GitHub Desktop.
Save higarin/63b5274462914036b0ad to your computer and use it in GitHub Desktop.
# Ansible
- hosts: 127.0.0.1
connection: local
sudo: yes
vars:
etcd_version: v2.2.1-linux-amd64
kubermetes_version: v1.0.6
src: /tmp
tasks:
- name: Yum install Docker
yum: name=docker state=installed
- yum: name=go state=installed
- name: Download etcd
get_url: url=https://github.com/coreos/etcd/releases/download/v2.2.1/etcd-{{etcd_version}}.tar.gz dest={{src}}
- name: Extract
command: tar xfz etcd-{{etcd_version}}.tar.gz chdir={{src}} -C /usr/local/
- file: src=/usr/local/etcd-{{etcd_version}}/etcd dest=/usr/bin/etcd state=link
- file: src=/usr/local/etcd-{{etcd_version}}/etcdctl dest=/usr/bin/etcdctl state=link
- name: Download kubernetes
get_url: url=https://github.com/kubernetes/kubernetes/releases/download/{{kubermetes_version}}/kubernetes.tar.gz dest={{src}}
- name: Extract
command: tar xfz kubernetes.tar.gz chdir={{src}} -C /usr/local/
- command: /usr/local/kubernetes/hack/build-go.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment