forked from mpereira/macbook-playbook
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Various fixes to get all roles running successfully
- Loading branch information
Showing
15 changed files
with
37 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,3 @@ | ||
--- | ||
- name: Check if Google Chrome is the default browser | ||
command: defaultbrowser | ||
register: is_google_chrome_the_default_browser | ||
|
||
- name: Make Google Chrome the default browser | ||
command: defaultbrowser -set chrome | ||
when: "is_google_chrome_the_default_browser.stdout.find('Current: chrome') == -1" | ||
command: defaultbrowser chrome |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
--- | ||
- name: Download GraalVM | ||
get_url: | ||
url: "https://github.com/oracle/graal/releases/download/vm-{{ graalvm_version }}/graalvm-ce-darwin-amd64-{{ graalvm_version }}.tar.gz" | ||
url: "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-{{ graalvm_version }}/{{ graalvm_archive }}" | ||
dest: "{{ downloads_directory }}/{{ graalvm_archive }}" | ||
|
||
- name: Extract GraalVM | ||
unarchive: | ||
src="{{ downloads_directory }}/{{ graalvm_archive }}" | ||
dest="{{ downloads_directory }}" | ||
creates="{{ downloads_directory }}/{{ graalvm_directory }}" | ||
creates="{{ downloads_directory }}/{{ graalvm_extracted_directory }}" | ||
|
||
- name: Install GraalVM | ||
command: cp -R "{{ downloads_directory }}/{{ graalvm_directory }}" "/Applications/GraalVM-{{ graalvm_version }}.app" | ||
command: cp -R "{{ downloads_directory }}/{{ graalvm_extracted_directory }}" "/Applications/GraalVM-{{ graalvm_version }}.app" | ||
|
||
- name: Install native-image utility | ||
command: /Applications/GraalVM-{{ graalvm_version }}.app/Contents/Home/bin/gu install native-image |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
--- | ||
graalvm_archive: "graalvm-ce-darwin-amd64-{{ graalvm_version }}.tar.gz" | ||
graalvm_directory: "graalvm-ce-{{ graalvm_version }}" | ||
graalvm_java_version: "java11" | ||
graalvm_directory: "graalvm-ce-{{ graalvm_java_version }}-darwin-amd64-{{ graalvm_version }}" | ||
graalvm_archive: "{{ graalvm_directory }}.tar.gz" | ||
graalvm_extracted_directory: "graalvm-ce-{{ graalvm_java_version }}-{{ graalvm_version }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
- name: Download and install gron binary | ||
unarchive: | ||
src: https://github.com/tomnomnom/gron/releases/latest/download/v{{ gron_version }}/gron-darwin-amd64-{{ gron_version }}.tgz | ||
src: https://github.com/tomnomnom/gron/releases/download/v{{ gron_version }}/gron-darwin-amd64-{{ gron_version }}.tgz | ||
dest: /usr/local/bin | ||
mode: u+x | ||
remote_src: yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
--- | ||
- name: Install kubectl-tree | ||
command: kubectl krew install tree | ||
command: kubectl-krew install tree |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
macports_pkg: MacPorts-{{ macports_version }}-{{ macports_mac_release }}.pkg | ||
macports_pkg: MacPorts-{{ macports_version }}_{{ macports_pkg_version }}-{{ macports_mac_release }}.pkg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
--- | ||
- name: Download VLC | ||
get_url: | ||
url: http://get.videolan.org/vlc/{{ vlc_version }}/macosx/{{ vlc_dmg }} | ||
url: "https://get.videolan.org/vlc/{{ vlc_version }}/macosx/{{ vlc_dmg }}" | ||
dest: "{{ downloads_directory }}/{{ vlc_dmg }}" | ||
|
||
- name: Mount VLC image | ||
command: > | ||
chdir={{ downloads_directory }} | ||
hdiutil attach -nobrowse {{ vlc_dmg }} | ||
creates=/Volumes/{{ vlc_volume }} | ||
command: | ||
chdir: "{{ downloads_directory }}" | ||
cmd: hdiutil attach -nobrowse "{{ vlc_dmg }}" | ||
creates: "/Volumes/{{ vlc_volume }}" | ||
|
||
- name: Copy VLC.app to Applications directory | ||
command: > | ||
cp -R /Volumes/{{ vlc_volume }}/VLC.app /Applications | ||
shell: > | ||
rm -rf /Applications/VLC.app && cp -R "/Volumes/{{ vlc_volume }}/VLC.app" /Applications | ||
become: yes | ||
|
||
- name: Unmount VLC image | ||
command: hdiutil detach /Volumes/{{ vlc_volume }} | ||
command: hdiutil detach "/Volumes/{{ vlc_volume }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
--- | ||
vlc_name: vlc-{{ vlc_version }} | ||
vlc_name: vlc-{{ vlc_version }}-intel64 | ||
vlc_dmg: "{{ vlc_name }}.dmg" | ||
vlc_volume: "{{ vlc_name }}" | ||
vlc_volume: "VLC media player" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,4 @@ | |
- name: Install Yapf | ||
pip: | ||
name: yapf | ||
version: "{{ yapf_version }}" | ||
extra_args: --user |