Ansible: download vim-plug from GitHub

Use get_url to download vim-plug/plug.vim from GitHub.
Create a new eryn_vim_plug_tag variable to control which tag to download.
This commit is contained in:
Eryn Wells 2025-02-18 13:27:14 -08:00
parent 4bd546e649
commit 29fdc610bb
2 changed files with 8 additions and 0 deletions

View file

@ -0,0 +1,2 @@
---
eryn_vim_plug_tag: 0.14.0

View file

@ -4,6 +4,12 @@
name: neovim
state: present
- name: "neovim : Download vim-plug from GitHub"
ansible.builtin.get_url:
url: "https://raw.githubusercontent.com/junegunn/vim-plug/{{ eryn_vim_plug_tag }}/plug.vim"
dest: "{{ ansible_local.xdg.data_home }}/nvim/site/autoload/plug.vim"
mode: "0644"
- name: "neovim : Symlink config"
ansible.builtin.include_tasks: symlink_dotfile_directory.yml
vars: