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/neovim/tasks/main.yml

21 lines
614 B
YAML
Raw Normal View History

2022-12-19 22:27:26 +00:00
- name: Download Neovim PPA signing key
become: true
ansible.builtin.apt_key:
keyserver: keyserver.ubuntu.com
id: 9DBB0BE9366964F134855E2255F96FCF8231B6DD
keyring: /etc/apt/keyrings/neovim.gpg
- name: Install Neovim PPA
2022-12-02 19:10:38 +00:00
become: true
apt_repository:
2022-12-19 22:27:26 +00:00
repo: "deb [signed-by=/etc/apt/keyrings/neovim.gpg] https://ppa.launchpadcontent.net/neovim-ppa/stable/ubuntu {{ ansible_distribution_release }} main"
2022-12-20 16:20:36 +00:00
register: apt_repository
- name: Update APT cache
2022-12-20 17:31:17 +00:00
become: true
2022-12-20 16:20:36 +00:00
apt:
update_cache: true
when: apt_repository.changed
- name: Install Neovim
2022-12-02 19:10:38 +00:00
become: true
apt:
name: neovim