diff --git a/group_vars/all.yml b/group_vars/all.yml index a46c6b1..892f930 100644 --- a/group_vars/all.yml +++ b/group_vars/all.yml @@ -98,3 +98,33 @@ gnome_extensions: - openweather-extension@penguin-teal.github.io - user-theme@gnome-shell-extensions.gcampax.github.com - freon@UshakovVasilii_Github.yahoo.com + +macos: + hostname: "maximum" + homebrew_packages: + - mas + - tree + - iterm2 + - spotify + - visual-studio-code + - firefox + - thunderbird + - obsidian + - google-chrome + - vlc + - tor-browser + - the-unarchiver + - chromedriver + - nextcloud + - protonvpn + - todoist + - signal + - slack + - whatsapp + - rectangle + mas_remove: + - iMovie + - GarageBand + - Pages + - Keynote + - Numbers \ No newline at end of file diff --git a/macos.yml b/macos.yml new file mode 100644 index 0000000..9c04988 --- /dev/null +++ b/macos.yml @@ -0,0 +1,7 @@ +--- +- name: Ariejan's macos Linux + hosts: all + roles: + - { role: macos_01_hostname } + - { role: macos_02_packages } + diff --git a/roles/macos_01_hostname/tasks/main.yml b/roles/macos_01_hostname/tasks/main.yml new file mode 100644 index 0000000..0d32840 --- /dev/null +++ b/roles/macos_01_hostname/tasks/main.yml @@ -0,0 +1,5 @@ +--- +- name: Set hostname + ansible.builtin.hostname: + name: "{{ macos.hostname }}" + use: macos \ No newline at end of file diff --git a/roles/macos_02_packages/tasks/main.yml b/roles/macos_02_packages/tasks/main.yml new file mode 100644 index 0000000..7b8e4f0 --- /dev/null +++ b/roles/macos_02_packages/tasks/main.yml @@ -0,0 +1,9 @@ +--- +- name: Add homebrew packages + community.general.homebrew: + name: "{{ macos.homebrew_packages }}" + +- name: Remove unwanted Apple apps + community.general.mas: + name: "{{ macos.mas_remove }}" + state: absent diff --git a/scripts/macos_bootstrap.sh b/scripts/macos_bootstrap.sh new file mode 100644 index 0000000..1684f22 --- /dev/null +++ b/scripts/macos_bootstrap.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env -S bash -i + +# Install Xcode tools +xcode-select --install + +# Install Homebrew +NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" + +# Enable using Homebrew until we setup dotfiles +eval "$(/usr/local/bin/brew shellenv)" + +# Install required homebrew packages +brew install ansible mas rbw \ No newline at end of file