forked from andrewmacgregor/setup
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup-laptop.yml
77 lines (69 loc) · 1.55 KB
/
setup-laptop.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
76
---
- name: "Setup Laptop"
hosts: all
pre_tasks:
- name: Install imagemagick 6
homebrew:
name: "imagemagick@6"
state: present
roles:
- role: osx_defaults
tags:
- defaults
- role: homebrew
tags:
- homebrew
tasks:
- name: Create ~/workspace
file:
dest: "~/workspace"
state: directory
- name: Change default shell to Homebrew Bash
become: true
command: chpass -s /usr/local/bin/bash "{{ ansible_ssh_user }}"
tags:
- chpass
- name: Install RVM
shell: "curl -sSL https://get.rvm.io | bash -s stable"
tags:
- rvm
- name: Install grep
homebrew:
name: grep
tags:
- formulas
- name: Pow | Install Pow
homebrew:
name: pow
state: present
tags:
- formulas
- name: Pow | Create the required host directories for Pow
become: true
file:
path: "/Users/{{ ansible_user_id }}/Library/Application Support/Pow/Hosts"
state: directory
owner: "{{ ansible_user_id }}"
group: staff
mode: 0775
tags:
- pow
- name: Pow | Create a symlink to the host directories for Pow
file:
src: "/Users/{{ ansible_user_id }}/Library/Application Support/Pow/Hosts"
dest: "/Users/{{ ansible_user_id }}/.pow"
state: link
force: yes
tags:
- pow
- name: Pow | Create symlinks in ~/.pow
file:
src: "~/workspace/{{ item }}"
dest: "~/.pow/{{ item }}"
state: link
force: yes
loop:
- docsplit-server
- website
tags:
- pow