To use Homebrew task in the Ansible, both Homebrew and Ansible should be installed in the system. That means at least Homebrew and Ansible must be installed using shell script. Following installation and configuration will be done by Ansible, so that the shell script can be use for up-to-date the local environment.
- Shell script
- Install homebrew
- Install ansible using homebrew
- Execute ansible
- specifying /usr/local/bin/ansible to avoid PATH configured following ansible script
- Ansible
- Install/Update homebrew packages including Ansible
- Homebrew packages and Cask packages will be a independent list of yaml.
- All packages will be updated to the latest version using state=latest (https://docs.ansible.com/ansible/latest/modules/homebrew_module.html)
- Configure macOS environments
- Menu/Status
- Bluetooth
- Wi-Fi
- Battery
- Date/Time
- Login user name
- Screenshot folder
- Save screenshot files under ~/Pictures/Screenshots
- Dock
- Remove all
- Add Vivaldi, System Preferences, Terminal, Bitwarden
- Add ~/Pictures/Screenshots folder on the left of ~/Downloads
- Finder
- Show all extensions
- Mission control
- Configure corner actions
- Keyboard
- Caps Lock to Control
- Menu/Status
- Configure apps
- Shell
- Git
- GitHub
- SSH config
- AWS credentials
- .netrc
- Editor
- emacs
- ddskk
- AquaSKK
- GPG - openpgp
- Install/Update homebrew packages including Ansible
Credentials
- pull from Bitwarden With Bitwarden CLI, credentials can be retrieved through command line.