This script and playbook installs and configures most of the software I use on my Mac for web and software development.
The material you'll find here is a mix from my own production and the ones found in these sources:
- https://github.com/thoughtbot/laptop
- https://github.com/axinorm/macbook-setup
- https://github.com/geerlingguy/mac-dev-playbook
You have to run the bootstrap_ansible
script found here to install a minimum setup that may run ansible.
If your current macOS setup doesn't have git
, get and run the script like this (skip if you have git
):
curl --remote-name https://raw.githubusercontent.com/phurni/mac-dev-setup/master/bootstrap_ansible
sh bootstrap_ansible
Having git
, clone the repo and run the script:
cd ~ && git clone https://github.com/phurni/mac-dev-setup.git && cd mac-dev-setup
./bootstrap_ansible
All other software installs and configuration is done through the ansible
playbook main.yml
.
Modify this file at your discretion to choose what to do and with which data.
After each change to the main.yml
file, run:
cd ~/mac-dev-setup
ansible-playbook main.yml
Usually there's no need for manual steps before running the scripts.
However you'll find below usefull steps listed as a reminder.
If you didn't choose a correct name for your computer when installing,
open a terminal and run this to update it (replace choose_your_machine_name
with your wish):
NEW_HOSTNAME=choose_your_machine_name
scutil --set HostName $NEW_HOSTNAME
scutil --set LocalHostName $NEW_HOSTNAME
scutil --set ComputerName $NEW_HOSTNAME
dscacheutil -flushcache