ci: fix linting
All checks were successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/notify Pipeline was successful
ci/woodpecker/push/docs Pipeline was successful

This commit is contained in:
Robert Kaussow 2024-02-18 12:23:28 +01:00
parent 38f8ec3bea
commit ce6b5f8961
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
4 changed files with 26 additions and 35 deletions

View File

@ -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

View File

@ -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

View File

@ -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:

View File

@ -1,24 +1,21 @@
---
- block:
- name: Installing vim
package:
- name: Installing vim
ansible.builtin.package:
name: "{{ vim_package_name }}"
state: present
- name: Creating configuration directory
file:
- name: Creating configuration directory
ansible.builtin.file:
state: directory
dest: /etc/vim
owner: root
group: root
mode: 0755
mode: "0755"
- name: Configure vim
template:
- name: Configure vim
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"