File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 69
69
when : man8.stat.exists
70
70
become : yes
71
71
72
+ - shell : rm -rf /usr/local/homebrew
73
+ when : homebrew.stat.exists
74
+ become : yes
75
+
76
+ - name : ensure homebrew dir exists
77
+ file :
78
+ path : /usr/local/homebrew
79
+ state : directory
80
+ mode : 0755
81
+ owner : " {{ ansible_user_id }}"
82
+ group : " {{ ansible_user_gid }}"
83
+ become : yes
84
+
85
+ - shell : cd /usr/local/src && curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C /usr/local/homebrew
86
+
72
87
- name : add homebrew binaries to path
73
88
copy :
74
89
dest : " /Users/{{ ansible_user_id }}/.profile"
Original file line number Diff line number Diff line change 16
16
name : pre-commit
17
17
state : latest
18
18
19
+ # http://pre-commit.com
20
+ - name : install pre-commit for git
21
+ homebrew :
22
+ name : pre-commit
23
+ state : latest
24
+
19
25
# Manages HTTPS-based credentials (required for many SSO orgs)
20
26
- name : install microsoft's git-credential-manager-core
21
27
block :
You can’t perform that action at this time.
0 commit comments