Add neovim to PATH

This commit is contained in:
sonny 2024-08-12 20:36:26 +02:00
parent 8f273cc775
commit fe9f6788c3
3 changed files with 8 additions and 9 deletions

View file

@ -6,14 +6,6 @@
name: '{{ item }}'
state: present
loop: '{{ packages }}'
- name: add gitlab to known hosts
include_role:
name: common
tasks_from: 'known_hosts.yml'
vars:
user: '{{ ansible_user_id }}'
items:
- { domain: '{{ gitlab_domain }}', key: '{{ gitlab_host_key }}' }
tasks:
- import_tasks: 'tasks/dotfiles.yml'
- import_tasks: 'tasks/neovim.yml'

View file

@ -189,6 +189,10 @@
when: neovim_download.state == 'file' and
(neovim_installed_version is undefined or neovim_installed_version != neovim.version)
# TODO: add new entry to PATH
- name: add neovim to PATH
become: true
template:
src: 'templates/nvim.profile.j2'
dest: '/etc/profile.d/neovim.sh'
when: ansible_facts['os_family'] == 'Debian'

View file

@ -0,0 +1,3 @@
# {{ ansible_managed }}
PATH="{{ neovim.install_path }}:$PATH"