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

40 lines
1.1 KiB
YAML
Raw Normal View History

2023-01-15 14:00:38 +00:00
- 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 {{ distribution_release }} main"
2023-01-15 14:00:38 +00:00
register: apt_repository
- name: Update APT cache
become: true
apt:
update_cache: true
when: apt_repository.changed
- name: Install Alacritty
become: true
apt:
2023-01-20 17:02:18 +00:00
pkg:
- alacritty
- fonts-noto-color-emoji
2023-01-15 14:17:35 +00:00
- 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
2023-01-20 17:02:18 +00:00
- 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