Ansible role p10k
Ansible role for installing powerlevel10k
GitHub | Version | Issues | Pull Requests | Downloads |
---|---|---|---|---|
This example is taken from molecule/default/converge.yml
and is tested on each push, pull request and release.
---
- name: Converge
hosts: all
tasks:
- name: "Include buluma.p10k"
ansible.builtin.include_role:
name: "buluma.p10k"
vars:
zsh_plugin: "{{ lookup('env', 'zsh_plugin') | default('zsh', True) }}"
p10k_prompt_style: "{{ lookup('env', 'p10k_prompt_style') | default('rainbow', True) }}"
The machine needs to be prepared. In CI this is done using molecule/default/prepare.yml
:
---
- name: Prepare
hosts: all
become: true
gather_facts: false
roles:
- role: buluma.bootstrap
# - role: buluma.sudo
Also see a full explanation and example on how to use these roles.
The default values for the variables are set in defaults/main.yml
:
---
# defaults file for ansible-role-p10k
# Powerlevel10k Git repository url
p10k_repository_url: 'https://github.com/romkatv/powerlevel10k.git'
# Install p10k for the following linux users
# Default: the linux user running Ansible
p10k_users:
- "{{ ansible_user_id }}"
# Zsh plugin used, zsh, ohmyzsh, prezto, Zim, etc..
# All plugin names can be found here https://github.com/romkatv/powerlevel10k#installation
zsh_plugin: zsh
# Setup p10k theme to use
# Valid values: lean, classic, rainbow, pure
p10k_prompt_style: "lean"
# Show current time
# Valid values: false, 24-hour, 12-hour
p10k_prompt_time: "24-hour"
# Prompt separator
# Valid values: angled, vertical, slanted, round
p10k_prompt_separator: "angled"
# Prompt heads
# Valid values: sharp, blurred, slanted, round
p10k_prompt_head: "sharp"
# Prompt tails
# Valid values: flat, blurred, sharp, slanted, round
p10k_prompt_tails: flat
# Terminal prompt height
# Valid values: one-line, two-lines
p10k_prompt_height: one-line
# Prompt connection, only used if "p10k_prompt_height" value is "two-lines"
# Valid values: disconnected, dotted, solid
p10k_prompt_connection: disconnected
# Prompt connection color, only used if
# "p10k_prompt_connection" value is "dotted" or "solid"
# or "p10k_prompt_frame" is not "false"
# Valid values: lightest, light, dark, darkest, black, white, green, blue
p10k_prompt_connection_color: "dark"
# Prompt frame connection
# Valid values: false, left, right, full
p10k_prompt_frame: left
# Sparse prompt with an empty line before promp
# Valid values: compact, sparse
p10k_prompt_spacing: compact
# Terminal flow
# Valid values: concise, fluent
p10k_prompt_flow: concise
# Enable transient prompt
# Valid values: true, false
p10k_transient_prompt: "false"
- pip packages listed in requirements.txt.
The following roles are used to prepare a system. You can prepare your system in another way.
Requirement | GitHub | Version |
---|---|---|
buluma.bootstrap | ||
buluma.sudo |
This role is a part of many compatible roles. Have a look at the documentation of these roles for further information.
Here is an overview of related roles:
This role has been tested on these container images:
container | tags |
---|---|
EL | 8 |
Fedora | all |
Ubuntu | all |
opensuse | all |
The minimum version of Ansible required is 2.12, tests have been done to:
- The previous version.
- The current version.
- The development version.
If you find issues, please register them in GitHub