||2 months ago|
|images||3 months ago|
|.gitignore||3 months ago|
|README.md||3 months ago|
|ansible.cfg||3 months ago|
|flags.yml||3 months ago|
|playbook.yml||2 months ago|
Ansible Playbook for Initial Configuration of MacOS Big Sur on Apple Silicon
Bare in mind these instructions are specific to my own device and infrastructure. Regardless of that, do feel free to adapt this repository to your own needs.
Mount Samba Share
Open Finder, and press
⌘ K to open the "Connect to Server" window. Enter
smb://10.0.0.80/my and click
Confirm the attempt to connect.
Then enter credentials for the share.
Open up the default Terminal, and type
pip3. This will then prompt you to install
Command Line Developer Tools.
Next, change the default shell to Bash (from Zsh):
chsh -s /bin/bash
Next, upgrade pip.
pip3 install --user --upgrade pip3
Restart the terminal, and then proceed with the next steps.
Install Ansible using the command below.
python3 -m pip install --user ansible
You may need to add the below PATH to
.bashrc, if running
ansible doesn't work straight away, as Ansible get's installed there.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Install Ansible Galaxy Collections
ansible-galaxy collection install community.general
To avoid running certain tasks (such as Homebrew) which may take a while to run, a number of boolean variables are provided in
By default they are all set to
For an actual intial configuration, or to make sure current software is up to date, the flags can be set to
# Download Ansible Galaxy Prerequisites: download_galaxy: false # Download applications that need manual installation: download_apps: false # Run Homebrew Packages: run_homebrew_packages: false # Run Homebrew Casks: run_homebrew_casks: false # Run Python pip: run_pip: true
ansible-playbook --ask-become-pass playbook.yml