/
cent7.yml
64 lines (64 loc) · 1.77 KB
/
cent7.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
---
- hosts: all
user: vagrant
tasks:
- name: yum update
yum: name=* state=latest
sudo: yes
- name: install development tools
yum: name="@Development tools"
sudo: yes
- name: install packages
yum: name={{ item }}
sudo: yes
with_items:
- git
- mercurial
- tmux
- vim
- emacs
- memcached
- java-1.7.0-openjdk
- yum-utils
- tree
- zsh
- name: install mysql yum repository
yum: name=http://dev.mysql.com/get/mysql57-community-release-el7-7.noarch.rpm state=present
sudo: yes
- name: disable mysql57-community repository
command: yum-config-manager --disable mysql57-community
sudo: yes
- name: enable mysql56-community repository
command: yum-config-manager --enable mysql56-community
sudo: yes
- name: install mysql stuff
yum: name={{ item }}
sudo: yes
with_items:
- mysql-community-libs
- mysql-community-server
- mysql-community-devel
- name: install linuxbrew deps
yum: name={{ item }}
sudo: yes
with_items:
- curl
- git
- irb
- m4
- python-setuptools
- ruby
- texinfo
- bzip2-devel
- curl-devel
- expat-devel
- ncurses-devel
- zlib-devel
- name: install linuxbrew
git: repo=https://github.com/Homebrew/linuxbrew.git dest=~/.linuxbrew
- name: install rvm, gpg stuff
command: gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
- name: install rvm, get rvm installer
get_url: url=https://get.rvm.io dest=~/rvm-installer mode=0755
- name: install rvm, run installer
command: ~/rvm-installer