Skip to content
This repository has been archived by the owner on Oct 10, 2022. It is now read-only.

Latest commit

 

History

History
109 lines (78 loc) · 3.14 KB

README.md

File metadata and controls

109 lines (78 loc) · 3.14 KB

Ansible role: macterm

MIT licensed Galaxy Role

DEPRECATION NOTICE

This role is being deprecated in favor of ansible-collection-mac.

Collection on Galaxy: drew1kun.mac

Description

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:

iTerm2:

MacOS Terminal app:

Requirements

NOTE: Role requires Fact Gathering by ansible!

One of the following OS (or deriviatives):

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

Role Variables

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

Dependencies

Install via ansible-galaxy:

ansible-galaxy install drew1kun.nerdfonts drew1kun.terminus_powerline

Example Playbook

- hosts: dev_clients
  gather_facts: yes
  roles:
  - role: drew1kun.macterm

License

MIT

Author Information

Andrew Shagayev | e-mail