-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdev.yml
36 lines (31 loc) · 1.05 KB
/
dev.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
- hosts: all
name: Setup development environment
become: yes
tasks:
- name: install packages
apt: name="{{item}}" state=present
with_items:
- geany
- mono-complete
- git
- gitg
- chromium-browser
- virtualbox
- vagrant
- npm
- name: install php5
apt: name=php5-cli state=present
when: ansible_distribution == 'Ubuntu' and ansible_distribution_release == 'trusty'
- name: install php7.0
apt: name=php7.0-cli state=present
when: ansible_distribution == 'Ubuntu' and
(ansible_distribution_release == 'xenial' or ansible_distribution_release == 'yakkety')
- file: src=/usr/bin/nodejs dest=/usr/local/bin/node state=link
- name: install Composer
shell: php -r "readfile('https://getcomposer.org/installer');" | php -- --install-dir=/usr/local/bin --filename=composer
args:
creates: /usr/local/bin/composer
- name: install Bower
shell: npm install -g bower
args:
creates: /usr/local/bin/bower