This repository has been archived on 2024-04-30. You can view files and clone it, but cannot push or open issues or pull requests.
setup/roles/alacritty/tasks/main.yml

39 lines
1.1 KiB
YAML

- name: Download PPA signing key
become: true
apt_key:
keyserver: keyserver.ubuntu.com
id: 3A160895CC2CE253085D08A552B24DF7D43B5377
keyring: /etc/apt/keyrings/alacritty.gpg
- name: Install PPA repository
become: true
apt_repository:
repo: "deb [signed-by=/etc/apt/keyrings/alacritty.gpg] https://ppa.launchpadcontent.net/aslatter/ppa/ubuntu {{ ansible_distribution_release }} main"
register: apt_repository
- name: Update APT cache
become: true
apt:
update_cache: true
when: apt_repository.changed
- name: Install Alacritty
become: true
apt:
pkg:
- alacritty
- fonts-noto-color-emoji
- name: Create Alacritty config directory
file:
path: ~/.config/alacritty
state: directory
- name: Install alacritty.yml
copy:
src: "{{ role_path }}/files/alacritty.yml"
dest: ~/.config/alacritty/alacritty.yml
- name: Create fontconfig directory
file:
path: ~/.config/fontconfig
state: directory
recurse: true
- name: Copy font.conf
copy:
src: "{{ role_path }}/files/font.conf"
dest: ~/.config/fontconfig/font.conf