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

28 lines
832 B
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:
name: alacritty
- 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