Setup macos setup
Some checks failed
Lint / Lint (3.10) (push) Failing after 18s
Lint / Lint (3.11) (push) Failing after 22s

This commit is contained in:
Ariejan de Vroom 2024-06-10 11:17:10 +02:00
parent 5525d2a7bd
commit eca072f322
Signed by: ariejan
GPG Key ID: AD739154F713697B
5 changed files with 64 additions and 0 deletions

View File

@ -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

7
macos.yml Normal file
View File

@ -0,0 +1,7 @@
---
- name: Ariejan's macos Linux
hosts: all
roles:
- { role: macos_01_hostname }
- { role: macos_02_packages }

View File

@ -0,0 +1,5 @@
---
- name: Set hostname
ansible.builtin.hostname:
name: "{{ macos.hostname }}"
use: macos

View File

@ -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

View File

@ -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