This role is being deprecated in favor of ansible-collection-mac.
Collection on Galaxy: drew1kun.mac
Ansible role for terminal configuration on MacOS (Linux coming soon)
This role does the following:
- Installs Nerdfonts
- Installs Terminus Powerline font if configured (see Role Variables section)
- Imports Terminal.app Profile with Custom Solarized Dark Colorscheme
- Installs Homebrew if needed - see Role Variables section
- Installs iTerm2 from homebrew
- Imports iTerm2 profile with Custom Solarized Dark Colorscheme
- Sets up nerdfonts for Non-ASCII Fonts and Terminus-Powerline font as ASCII Font.
In combination with ansible-ohmyzsh role getting the following results:
NOTE: Role requires Fact Gathering by ansible!
One of the following OS (or deriviatives):
- MacOS (with Homebrew)
If Homebrew is not installed on the managed host, install the following role via galaxy:
ansible-galaxy install drew1kun.homebrew
And include it in the playbook:
roles:
- drew1kun.homebrew
Variable | Description | Default |
---|---|---|
mac_terminal_iterm2 |
install iterm2. If yes - homebrew and terminus_powerline roles will be fetched as dependencies | yes |
mac_terminal_colorscheme |
Terminal app default theme (for iter2 change it manually in Preferences). OPTIONS: Solarized_Dark_Custom or Nord_Custom |
Nord_Custom |
- drew1kun.terminus_powerline (conditionally, when: terminal_iterm2 and terminal_homebrew_dep both set to 'yes')
- drew1kun.nerdfonts
Install via ansible-galaxy:
ansible-galaxy install drew1kun.nerdfonts drew1kun.terminus_powerline
- hosts: dev_clients
gather_facts: yes
roles:
- role: drew1kun.macterm
Andrew Shagayev | e-mail