Skip to content

Ameausoone/macos-provision

Repository files navigation

MacOS Ansible Playbook

This an Ansible Playbook to provision my macOS.

What this playbook provide ?

It will :

  • create useful directories.
  • install packages (brew(and taps), asdf, npm).
  • copy dotfiles which configure various applications(Git, npm, terraform, asdf) in home.
  • copy some zsh script, mainly for configuration and some helper functions and aliases.

How to install it the first time ?

  • install brew : brew.sh/
  • install ansible : brew install ansible
  • checkout project in ~/Projects/wk_perso/macos-setup/macos-provision.
  • copy roles/mac-dev-playbook/files/ansible/ansible.cfg in ~/.ansible.cfg
  • init file inventory file in ~/.ansible/inventory e.g.
[localhost]
${HOSTNAME}
  • then go to ~/Projects/wk_perso/macos-setup/macos-provision.
  • run ansible-playbook main.yml --diff --verbose --inventory ~/.inventory --limit $(hostname).
  • authenticate to GitHub
    gh auth login
  • change default shell
    chsh -s $(which zsh)

How to use it ?

Two functions are provided :

  • macconfig will open project with code

Manual configuration (I can't automate everything)

Docs

Terraform tools are documented in terraform-family.md.

Various

Conf

Could I use it ?

At your own risk, this playbook doesn't aim to be used by someone else, it's just to share how I provision my computers.

mise: install tools

mise install

Renew GPG keys

  • To Renew GPG keys, use this script:
    gpg-generate-key.sh

More GPG commands see gpg-cheatsheet.md.

Understand GPG commit signing

Load SSH key in ssh-agent

Setup Commit message template

About

Ansible playbook to setup my Macbook

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages