Setup macos setup
This commit is contained in:
parent
5525d2a7bd
commit
eca072f322
|
@ -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
7
macos.yml
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
- name: Ariejan's macos Linux
|
||||
hosts: all
|
||||
roles:
|
||||
- { role: macos_01_hostname }
|
||||
- { role: macos_02_packages }
|
||||
|
5
roles/macos_01_hostname/tasks/main.yml
Normal file
5
roles/macos_01_hostname/tasks/main.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
- name: Set hostname
|
||||
ansible.builtin.hostname:
|
||||
name: "{{ macos.hostname }}"
|
||||
use: macos
|
9
roles/macos_02_packages/tasks/main.yml
Normal file
9
roles/macos_02_packages/tasks/main.yml
Normal 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
|
13
scripts/macos_bootstrap.sh
Normal file
13
scripts/macos_bootstrap.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user