Skip to content

Ansible collection containing roles to automate setting up MacOS devices

License

Notifications You must be signed in to change notification settings

sculley/ansible-collection-mac-setup

Repository files navigation

Mac Setup Collection for Ansible

MIT licensed Galaxy Collection CI

Roles included in this collection (click on the link to see the role's README and documentation):

Installation

Install via Ansible Galaxy:

ansible-galaxy collection install sculley.mac_setup

Or include this collection in your playbook's requirements.yml file:

---
collections:
  - name: sculley.mac

Role Requirements

Requires separate installation of the elliotweiser.osx-command-line-tools role. Because Ansible collections are not able to depend on roles, you will need to make sure that role is installed either by manually installing it with the ansible-galaxy command, or adding it under the roles section of your requirements.yml file:

---
roles:
  - name: elliotweiser.osx-command-line-tools

collections:
  - name: sculley.mac_setup

Usage

Here's an example playbook which installs some Mac Apps (assuming you are signed into the App Store), CLI tools via Homebrew, and Cask Apps using Homebrew:

- hosts: localhost
  connection: local
  gather_facts: false

  vars:
    iterm2_font_urls:
      - https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Regular.ttf
    iterm2_dynamic_profile_urls:
      - https://raw.githubusercontent.com/sculley/iterm2-setup/main/MacOS-iTerm2.json
    iterm2_shell_integration: true
    iterm2_set_dynamic_default_profile_script_url: "https://raw.githubusercontent.com/sculley/iterm2-setup/main/set-dynamic-default-profile.py"
    iterm2_set_dynamic_default_profile_script_name: "set-dynamic-default-profile.py"

  roles:
    - sculley.mac.iterm2

See the full documentation for each role in the role's README, linked above.

License

MIT

Author

Sam Culley

About

Ansible collection containing roles to automate setting up MacOS devices

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages