fix nvim bug
This commit is contained in:
parent
546618c7ab
commit
778d60fe68
1 changed files with 4 additions and 4 deletions
|
@ -108,20 +108,20 @@
|
||||||
path: "/opt/nvim-linux64/bin"
|
path: "/opt/nvim-linux64/bin"
|
||||||
register: nvim
|
register: nvim
|
||||||
|
|
||||||
- name: Download foo.conf
|
- name: Download nvim for linux
|
||||||
ansible.builtin.get_url:
|
ansible.builtin.get_url:
|
||||||
url: "https://github.com/neovim/neovim/releases/download/v0.9.5/nvim-linux64.tar.gz"
|
url: "https://github.com/neovim/neovim/releases/download/v0.9.5/nvim-linux64.tar.gz"
|
||||||
dest: "/tmp/nvim-linux64.tar.gz"
|
dest: "/tmp/nvim-linux64.tar.gz"
|
||||||
mode: '0440'
|
mode: '0440'
|
||||||
when: not nvim.stat.exists
|
when: not nvim.stat.exists
|
||||||
|
|
||||||
- name: Extract foo.tgz into /var/lib/foo
|
- name: Extract nvim to /opt
|
||||||
ansible.builtin.unarchive:
|
ansible.builtin.unarchive:
|
||||||
src: "/tmp/nvim-linux64.tar.gz"
|
remote_src: "/tmp/nvim-linux64.tar.gz"
|
||||||
dest: /opt
|
dest: /opt
|
||||||
when: not nvim.stat.exists
|
when: not nvim.stat.exists
|
||||||
|
|
||||||
- name: Ensure SELinux is set to enforcing mode
|
- name: add nvim to path in bash
|
||||||
ansible.builtin.lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
path: ~/bashrc
|
path: ~/bashrc
|
||||||
regexp: '^export PATH'
|
regexp: '^export PATH'
|
||||||
|
|
Loading…
Reference in a new issue