File tree Expand file tree Collapse file tree 5 files changed +39
-19
lines changed Expand file tree Collapse file tree 5 files changed +39
-19
lines changed Original file line number Diff line number Diff line change 36
36
path : /usr/local/homebrew
37
37
register : homebrew
38
38
39
- - shell : rm -rf /usr/local/homebrew
39
+ - name : rm -rf /usr/local/homebrew
40
+ file :
41
+ path : /usr/local/homebrew
42
+ state : absent
40
43
when : homebrew.stat.exists
41
44
become : yes
42
45
51
54
52
55
- shell : cd /usr/local/src && curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C /usr/local/homebrew
53
56
57
+ - name : check if man8 file exists
58
+ stat :
59
+ path : /usr/local/share/man/man8
60
+ register : man8
61
+ ignore_errors : yes
62
+
63
+ - name : change ownership on man8
64
+ file :
65
+ path : /usr/local/share/man/man8
66
+ owner : " {{ ansible_user_id }}"
67
+ when : man8.stat.exists
68
+ become : yes
69
+
54
70
- name : add homebrew binaries to path
55
71
copy :
56
72
dest : " /Users/{{ ansible_user_id }}/.profile"
60
76
homebrew :
61
77
update_homebrew : yes
62
78
79
+ - name : install coreutils
80
+ homebrew :
81
+ name : coreutils
82
+ state : latest
83
+
63
84
- name : install jq
64
85
homebrew :
65
86
name : jq
Original file line number Diff line number Diff line change 35
35
pager = cat
36
36
[push]
37
37
default = upstream
38
+ [pull]
39
+ rebase = false
Original file line number Diff line number Diff line change 22
22
name : kubernetes-cli
23
23
state : latest
24
24
25
- # - name: install k9s
26
- # homebrew:
27
- # name: derailed/k9s/ k9s
28
- # state: latest
25
+ - name : install k9s
26
+ homebrew :
27
+ name : k9s
28
+ state : latest
29
29
30
30
- name : install kubectx
31
31
homebrew :
45
45
- name : check if privileges cli app is installed (corporate nanny)
46
46
command : /Applications/Privileges.app/Contents/Resources/PrivilegesCLI --help
47
47
register : privs_install_check
48
+ ignore_errors : yes
48
49
49
50
- name : add privileges app alias
50
51
lineinfile :
Original file line number Diff line number Diff line change 1
1
---
2
- # - name: shim pyenv into ~/.profile
3
- # lineinfile:
4
- # path: "/Users/{{ ansible_user_id }}/.profile"
5
- # line: "export PATH=${PATH}:$(pyenv root)/shims"
6
- # regexp: "^export PATH=${PATH}"
7
- #
8
- # - name: Add pyenv to .profile
9
- # lineinfile:
10
- # dest: "/Users/{{ ansible_user_id }}/.profile"
11
- # line: 'eval "$(pyenv init -)"'
2
+ - name : shim pyenv into ~/.profile
3
+ lineinfile :
4
+ path : " /Users/{{ ansible_user_id }}/.profile"
5
+ line : " export PATH=${PATH}:$(pyenv root)/shims"
6
+ regexp : " ^export PATH=${PATH}"
7
+
8
+ - name : Add pyenv to .profile
9
+ lineinfile :
10
+ dest : " /Users/{{ ansible_user_id }}/.profile"
11
+ line : ' eval "$(pyenv init -)"'
12
12
13
13
# NOTE: CFLAGS="-I$(xcrun --show-sdk-path)/usr/include" pyenv install 3.7.3
14
14
# If you're getting compilation errors caused by xcode cli tools
Original file line number Diff line number Diff line change 1
1
---
2
- - name : install iterm2
3
- shell : brew cask install iterm2
4
- ignore_errors : yes
5
-
6
2
- name : install zsh syntax highlighting
7
3
homebrew :
8
4
name : zsh-syntax-highlighting
You can’t perform that action at this time.
0 commit comments