Add neovim to PATH
This commit is contained in:
parent
8f273cc775
commit
fe9f6788c3
3 changed files with 8 additions and 9 deletions
|
|
@ -6,14 +6,6 @@
|
||||||
name: '{{ item }}'
|
name: '{{ item }}'
|
||||||
state: present
|
state: present
|
||||||
loop: '{{ packages }}'
|
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:
|
tasks:
|
||||||
- import_tasks: 'tasks/dotfiles.yml'
|
- import_tasks: 'tasks/dotfiles.yml'
|
||||||
- import_tasks: 'tasks/neovim.yml'
|
- import_tasks: 'tasks/neovim.yml'
|
||||||
|
|
|
||||||
|
|
@ -189,6 +189,10 @@
|
||||||
when: neovim_download.state == 'file' and
|
when: neovim_download.state == 'file' and
|
||||||
(neovim_installed_version is undefined or neovim_installed_version != neovim.version)
|
(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'
|
when: ansible_facts['os_family'] == 'Debian'
|
||||||
|
|
|
||||||
3
templates/nvim.profile.j2
Normal file
3
templates/nvim.profile.j2
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
# {{ ansible_managed }}
|
||||||
|
|
||||||
|
PATH="{{ neovim.install_path }}:$PATH"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue