diff --git a/debian.yml b/debian.yml index 1125ae0..16a0d80 100644 --- a/debian.yml +++ b/debian.yml @@ -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' diff --git a/tasks/neovim.yml b/tasks/neovim.yml index 6a98873..1e13e3c 100644 --- a/tasks/neovim.yml +++ b/tasks/neovim.yml @@ -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' diff --git a/templates/nvim.profile.j2 b/templates/nvim.profile.j2 new file mode 100644 index 0000000..9feea09 --- /dev/null +++ b/templates/nvim.profile.j2 @@ -0,0 +1,3 @@ +# {{ ansible_managed }} + +PATH="{{ neovim.install_path }}:$PATH"