nass600.powerline
Ansible Role - Powerline
This Ansible role installs and sets up Powerline on Linux and macOS systems.
Requirements
You need to have your configuration files (like colorschemas and themes) saved on your system.
Role Variables
Here are the available variables with their default values (view defaults/main.yml
for details):
powerline
powerline_package_name:
"powerline-status"
The name of the Powerline package to install. You can specify a different version if needed.powerline_version:
""
The version of Powerline to install. By default, it's empty which means the latest version will be installed.powerline_extra_segments:
- {name: powerline-gitstatus, version: "v1.2.1"}
Extra Powerline segments you want to install.
powerline_daemon_destination:
"~/.bashrc"
The file where you want to set up the Powerline daemon to launch.
Powerline Config
powerline_config_dir:
"~/.config/powerline"
The location of the Powerline configuration files. This is where the mainconfig.json
will be created.powerline_config_shell_colorscheme:
"default"
powerline_config_shell_theme:
"default"
powerline_config_vim_colorscheme:
"default"
powerline_config_vim_theme:
"default"
These specify the themes used for generating theconfig.json
.
Powerline Fonts
powerline_fonts_repo:
"git://github.com/powerline/fonts.git"
The repository where the patched fonts can be found.powerline_fonts_dir:
"{{ powerline_config_dir }}/fonts"
The directory where you want to save the downloaded fonts.
Dependencies
- Python
- Pip
Example Playbook
Here’s an example of how to use this role (you can pass in variables as needed):
- hosts: servers
roles:
- { role: nass600.powerline }
License
Author Information
ansible-galaxy install nass600.powerline