Ansible_workstation/roles/user/tasks/vim.yml

30 lines
705 B
YAML
Raw Permalink Normal View History

2022-01-12 05:06:12 +00:00
---
- name: Install vim
community.general.pacman:
name: vim
state: present
when: ansible_os_family == "Archlinux"
- name: Install vim
apt:
name: vim
state: present
when: ansible_os_family == "Debian"
2022-01-12 14:04:28 +00:00
- name: mkdir autoload
ansible.builtin.file:
path: "/home/{{ user.username }}/.vim/autoload"
owner: "{{ user.username }}"
state: directory
2022-01-12 05:06:12 +00:00
- name: Install vim-plug
get_url:
url: "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim"
dest: "/home/{{ user.username }}/.vim/autoload/plug.vim"
- name: user owns vim-plug
ansible.builtin.file:
path: "/home/{{ user.username }}/.vim/autoload/plug.vim"
owner: "{{ user.username }}"