ci: fix linting
This commit is contained in:
parent
38f8ec3bea
commit
ce6b5f8961
@ -1,10 +1,8 @@
|
||||
---
|
||||
- name: Fix default vim (debian)
|
||||
lineinfile:
|
||||
ansible.builtin.lineinfile:
|
||||
dest: /etc/vim/vimrc
|
||||
regexp: '^\"\s*let\sg\:skip_defaults_vim.*$'
|
||||
line: 'let g:skip_defaults_vim = 1'
|
||||
line: "let g:skip_defaults_vim = 1"
|
||||
state: present
|
||||
backrefs: yes
|
||||
become: True
|
||||
become_user: root
|
||||
backrefs: True
|
||||
|
@ -1,11 +1,9 @@
|
||||
---
|
||||
- name: Source local vimrc (redhat)
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
dest: /etc/vimrc
|
||||
marker: "\" {mark} ANSIBLE MANAGED BLOCK"
|
||||
marker: '" {mark} ANSIBLE MANAGED BLOCK'
|
||||
block: |
|
||||
if filereadable("/etc/vim/vimrc.local")
|
||||
source /etc/vim/vimrc.local
|
||||
endif
|
||||
become: True
|
||||
become_user: root
|
||||
|
@ -1,9 +1,7 @@
|
||||
---
|
||||
- include_vars: "{{ ansible_os_family | lower }}.yml"
|
||||
|
||||
- import_tasks: setup.yml
|
||||
|
||||
- include_tasks: "{{ lookup('first_found', params) }}"
|
||||
- ansible.builtin.include_vars: "{{ ansible_os_family | lower }}.yml"
|
||||
- ansible.builtin.import_tasks: setup.yml
|
||||
- ansible.builtin.include_tasks: "{{ lookup('first_found', params) }}"
|
||||
vars:
|
||||
params:
|
||||
files:
|
||||
|
@ -1,24 +1,21 @@
|
||||
---
|
||||
- block:
|
||||
- name: Installing vim
|
||||
package:
|
||||
ansible.builtin.package:
|
||||
name: "{{ vim_package_name }}"
|
||||
state: present
|
||||
|
||||
- name: Creating configuration directory
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
state: directory
|
||||
dest: /etc/vim
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0755
|
||||
mode: "0755"
|
||||
|
||||
- name: Configure vim
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: etc/vim/vimrc.local.j2
|
||||
dest: /etc/vim/vimrc.local
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
become: True
|
||||
become_user: root
|
||||
mode: "0644"
|
||||
|
Loading…
Reference in New Issue
Block a user