Skip to content

portovep/macos-ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

macOS-ansible

My macOS setup automated with Ansible

Getting started

Run the bootstrap script to install Ansible and Brew

$ ./bootstrap.sh

Custom configuration

Rename custom_vars.example.yml to be able to set your own configuration

$ mv custom_vars.example.yml custom_vars.yml

Set your custom hostname

Set the value of the hostname variable to your hostname in custom_vars.yml

Set your own SSH keys

Copy your ssh keys to roles/ssh/files

$ cp private-ssh-key roles/ssh/files/
$ cp public-ssh-key roles/ssh/files/

Set the value of private_ssh_key_name and public_ssh_key_name variables to the names of your private and public key in custom_vars.example.yml

Run the playbook

$ ansible-playbook site.yml -i inventory -K

Tags available

To just run a specific tag (e.g. development)

$ ansible-playbook site.yml -i inventory -K -t development

or multiple tags

$ ansible-playbook site.yml -i inventory -K --tags "development,ssh"

development

  • git
  • node
  • yarn
  • watchman
  • clojure
  • leiningen
  • java
  • virtualbox
  • vagrant
  • visual-studio-code
  • firebase-tools

other

  • vlc
  • flux
  • evernote
  • zoomus
  • spotify
  • dropbox

productivity

  • spectacle
  • 1clipboard

terminal

  • zsh
  • autojump
  • hyper

ssh

  • sshconfig
  • ssh keys

macos

  • sets hostname
  • .macos config

web

  • google-chrome
  • firefox

Manual steps

  • Virtualbox installation requires sudo password
  • zoomus installation requires sudo password
  • Allow extensions from Oracle to install Virtualbox

Manual App installation

  • 1Password (AppStore)
  • Pocket (AppStore)
  • Clipmenu (Web)
  • Docker for Mac (Web)

Manual App customization

  • 1Clipboard: Change shortcut to cmd + shift + v

Manual OS customization

  • Automatically hide/show menu bar
  • Show bluetooth in Menu bar
  • Show battery percentage
  • Clock show date
  • Adjust key repeat and delay till repeat in keyboard settings
  • Disable dictation shortcut (Keyboard -> dictation shortcut)
  • Enable file encryption with FileVault
  • Customize Spotlight search results
  • Enable macOS system data files and security updates
  • Disable everything in "Siri suggestions & privacy"
  • Disable allow handoff between mac and icloud services (General preferences)
  • Require password inmediatly after sleep/screen-saver
  • Configure Sophos antivirus
  • Configure privacy settings macOS (security & privacy preferences)

TODO

  • Automate remaining manual os customization tasks
  • Automate remaining manual app customization tasks
  • Automate App Store apps installation with mas

About

My macOS setup automated with Ansible

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published