automatrop: Run ansible-lint --fix
This commit is contained in:
parent
d60f5aaa9d
commit
9c3dcba2e5
18 changed files with 342 additions and 333 deletions
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
- name: Set vim variants to use
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
vim_variants:
|
||||
- vim
|
||||
- nvim
|
||||
|
@ -7,37 +8,37 @@
|
|||
# TODO Select those in a clever way
|
||||
|
||||
- name: Create vim configuration directory
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
state: directory
|
||||
path: "{{ ansible_user_dir }}/.config/{{ item }}"
|
||||
mode: "u=rwx,g=rx,o=rx"
|
||||
mode: u=rwx,g=rx,o=rx
|
||||
loop: "{{ vim_variants }}"
|
||||
|
||||
- name: Install vim-plug
|
||||
get_url:
|
||||
ansible.builtin.get_url:
|
||||
url: https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
||||
dest: "{{ ansible_user_dir }}/.config/vim/plug.vim"
|
||||
mode: "u=rw,g=r,o=r"
|
||||
mode: u=rw,g=r,o=r
|
||||
|
||||
- name: Install loader
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: loader.j2
|
||||
dest: "{{ ansible_user_dir }}/.config/vim/loader.vim"
|
||||
mode: "u=rw,g=r,o=r"
|
||||
mode: u=rw,g=r,o=r
|
||||
|
||||
- name: Install theme
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: theme.j2
|
||||
dest: "{{ ansible_user_dir }}/.config/vim/theme.vim"
|
||||
mode: "u=rw,g=r,o=r"
|
||||
mode: u=rw,g=r,o=r
|
||||
tags:
|
||||
- color
|
||||
|
||||
- name: Configure vim plugin list
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: plugininstall.j2
|
||||
dest: "{{ ansible_user_dir }}/.config/{{ variant }}/plugininstall.vim"
|
||||
mode: "u=rw,g=r,o=r"
|
||||
mode: u=rw,g=r,o=r
|
||||
notify:
|
||||
- "{{ variant }} plugins changed"
|
||||
loop: "{{ vim_variants }}"
|
||||
|
@ -45,10 +46,10 @@
|
|||
loop_var: variant
|
||||
|
||||
- name: Configure vim
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: init.vim.j2
|
||||
dest: "{{ ansible_user_dir }}/.config/{{ variant }}/init.vim"
|
||||
mode: "u=rw,g=r,o=r"
|
||||
mode: u=rw,g=r,o=r
|
||||
loop: "{{ vim_variants }}"
|
||||
loop_control:
|
||||
loop_var: variant
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue