/ansible-role-powerline-go

Ansible role for building, installing, and configuring powerline-go

Primary LanguageJinja

powerline-go

Compiles and installs powerline-go and optionally installs handlers for zsh and fish.

Requirements

None

Role Variables

  • install_fish

    • Type: Boolean
    • Usage: if true, creates powerline-go.fish in ~/.config/fish/fish.d. This will also make powerline-go use the -duration-low-precision flag to account for the lower resolution timer in fish.
    • Default: undefined (false)
  • install_zsh

    • Type: Boolean
    • Usage: if true, creates powerline-go.zsh in ~/.zshrc
    • Default: undefined (false)
  • install_pwsh

    • Type: Boolean
    • Usage: if true, creates powerline-go.psm1 in ~/.config/powershell and sets prompt in profile.ps1.
  • modules

    • Type: string
    • Usage: an optional string of modules to use to override the default configuration of modules
    • Default: undefined (use defaults from powerline-go)

Dependencies

None

Example Playbook

Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:

- hosts:
    - local
  roles:
    - powerline-go
  vars:
    powerline_go:
      install_zsh: true
      install_fish: true
	  install_pwsh: true
      modules: venv,user,host,ssh,cwd,perms,git,hg,duration,exit,root

License

MIT

Author Information

Patrick Wagstrom <patrick@wagstrom.net>