File tree 2 files changed +15
-0
lines changed
2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 73
73
- " {{ packages[os|stripversion]|default('[]') }}"
74
74
- " {{ common_packages|default('[]') }}"
75
75
76
+ - name : Check whether /etc/paths contains "/usr/localopt/ccache/libexec" (macos)
77
+ when : os|startswith("macos")
78
+ command : grep -Fxq "/usr/localopt/ccache/libexec" /etc/paths
79
+ register : ccache_mac
80
+ check_mode : no
81
+ ignore_errors : yes
82
+ changed_when : no
83
+
84
+ - name : add ccache to the path (macos)
85
+ when : ccache_mac.rc == 1
86
+ lineinfile : dest=/etc/paths
87
+ insertbefore=BOF
88
+ line='/usr/localopt/ccache/libexec'
89
+
76
90
- name : update package alternatives
77
91
when : os == "ubuntu1404"
78
92
alternatives : link=/usr/bin/{{ gcc }} name={{ gcc }} path=/usr/bin/{{ gcc }}-4.9
Original file line number Diff line number Diff line change @@ -91,6 +91,7 @@ packages: {
91
91
macos : [
92
92
' curl' ,
93
93
' python2' ,
94
+ ' ccache' ,
94
95
],
95
96
96
97
smartos14 : [
You can’t perform that action at this time.
0 commit comments