-
Notifications
You must be signed in to change notification settings - Fork 0
/
powerline.yaml
27 lines (23 loc) · 1.17 KB
/
powerline.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
---
# Basic playbook that installed powerline and copies the configuration file
- name: Install Powerline.
hosts: all # Change this to your inventory groups (or leave all)
gather_facts: false # Faster execution since we don't need to gather facts
tasks:
- name: Ensure powerline packages are installed.
ansible.builtin.apt: # Fedora: use ansible.builtin.dnf (or both can use ansible.builtin.package)
name: powerline
state: present
become: true
# Copy the configuration file to the home directory of the ansible user.
- name: Ensure ~/.bash_aliases is copied.
ansible.builtin.copy:
src: bash_aliases
dest: ~/.bash_aliases # Fedora: use ~/.bashrc.d/bash_aliases
owner: alvin
group: alvin
mode: '0664'
# Powerline needs extra symbols in the font used in your terminal. Show the user a message about that.
- name: Show font tip.
ansible.builtin.debug:
msg: "Powerline uses symbols that are not available in every font. Do not forget to install and use a font with Powerline Symbols included. (Example: https://www.nerdfonts.com/)"