-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.yml
75 lines (67 loc) · 2.07 KB
/
main.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
65
66
67
68
69
70
71
72
73
74
75
---
- hosts: all
become: false
connection: local
vars:
terraform_version: 0.11.2
tasks:
- name: Install homebrew
shell: "/usr/bin/ruby -e \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)\""
args:
creates: /usr/local/bin/brew
- name: Install useful packages
package:
name: "{{ item }}"
state: latest
with_items:
- wget
- name: Install things from brew cask
shell: "brew cask install {{ item }}"
args:
creates: "/Applications/{{ item }}"
failed_when: false
with_items:
- google-chrome
- visual-studio-code
- virtualbox
- virtualbox-extension-pack
- vagrant
- minishift
- name: Install vagrant manager
shell: "vagrant plugin install vagrant-hostmanager"
- name: Install visual studio code extensions
shell: "code --install-extension {{ item }}"
with_items:
- adamvoss.yaml
- castwide.solargraph
- haaaad.ansible
- jpogran.puppet-vscode
- mortenhenriksen.perl-debug
- ms-python.python
- rebornix.ruby
- rogalmic.bash-debug
- waderyan.nodejs-extension-pack
failed_when: false
- name: Add custom settings for VS Code
copy:
src: settings.json
dest: "~/Library/Application Support/Code/User/settings.json"
- name: Install things from brew
shell: "brew install {{ item }}"
args:
creates: "/usr/local/Cellar/{{ item }}"
with_items:
- docker
- python3
- node
- kubectl
failed_when: false
- name: Install Python 3 modules using pip
shell: "pip3 install {{ item }}"
with_items:
- selinium
- name: Install Terraform
shell: "wget https://releases.hashicorp.com/terraform/{{ terraform_version }}/terraform_{{ terraform_version }}_darwin_amd64.zip && unzip terraform_{{ terraform_version }}_darwin_amd64.zip -d /usr/local/bin/"
args:
chdir: /tmp
creates: /usr/local/bin/terraform