forked from mokevnin/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.yml
More file actions
78 lines (69 loc) · 1.91 KB
/
install.yml
File metadata and controls
78 lines (69 loc) · 1.91 KB
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
---
- hosts: all
vars:
nodejs_version: node_10.x
tasks:
- lineinfile:
regexp: ~/.local
path: ~/.bash_profile
line: "export PATH=$PATH:~/.local/bin;"
- homebrew:
update_homebrew: true
when: ansible_os_family == 'Darwin'
- homebrew_tap:
name: "{{ item }}"
with_items:
# - homebrew/dupes
- homebrew/php
- homebrew/completions
when: ansible_os_family == 'Darwin'
- homebrew:
name: "{{ item }}"
state: latest
with_items:
- node
- php71
- composer
when: ansible_os_family == 'Darwin'
- name: Ensure apt-transport-https is installed.
apt: name=apt-transport-https state=present
when: ansible_distribution == 'Ubuntu'
- name: Add Nodesource apt key.
apt_key:
url: "https://deb.nodesource.com/gpgkey/nodesource.gpg.key"
state: present
become: yes
when: ansible_distribution == 'Ubuntu'
- name: Add NodeSource repositories for Node.js.
apt_repository:
repo: "{{ item }}"
state: present
with_items:
- "deb https://deb.nodesource.com/{{ nodejs_version }} {{ ansible_distribution_release }} main"
- "deb-src https://deb.nodesource.com/{{ nodejs_version }} {{ ansible_distribution_release }} main"
become: yes
when: ansible_distribution == 'Ubuntu'
- apt: name={{ item }} state=latest update_cache=yes
become: true
with_items:
# - mono-runtime
- ruby
- ruby-dev
- php
- nodejs
- cmake
- python-dev
- openssl
- libssl-dev
- ack-grep
- clang-format-3.6
- clang-3.6
- llvm
- exuberant-ctags
- curl
- python3-apt
- python3-pycurl
- python3-dev
- python3-setuptools
- flex
when: ansible_distribution == 'Ubuntu'