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) - name: Fix default vim (debian)
lineinfile: ansible.builtin.lineinfile:
dest: /etc/vim/vimrc dest: /etc/vim/vimrc
regexp: '^\"\s*let\sg\:skip_defaults_vim.*$' regexp: '^\"\s*let\sg\:skip_defaults_vim.*$'
line: 'let g:skip_defaults_vim = 1' line: "let g:skip_defaults_vim = 1"
state: present state: present
backrefs: yes backrefs: True
become: True
become_user: root

View File

@ -1,11 +1,9 @@
--- ---
- name: Source local vimrc (redhat) - name: Source local vimrc (redhat)
blockinfile: ansible.builtin.blockinfile:
dest: /etc/vimrc dest: /etc/vimrc
marker: "\" {mark} ANSIBLE MANAGED BLOCK" marker: '" {mark} ANSIBLE MANAGED BLOCK'
block: | block: |
if filereadable("/etc/vim/vimrc.local") if filereadable("/etc/vim/vimrc.local")
source /etc/vim/vimrc.local source /etc/vim/vimrc.local
endif endif
become: True
become_user: root

View File

@ -1,9 +1,7 @@
--- ---
- include_vars: "{{ ansible_os_family | lower }}.yml" - ansible.builtin.include_vars: "{{ ansible_os_family | lower }}.yml"
- ansible.builtin.import_tasks: setup.yml
- import_tasks: setup.yml - ansible.builtin.include_tasks: "{{ lookup('first_found', params) }}"
- include_tasks: "{{ lookup('first_found', params) }}"
vars: vars:
params: params:
files: files:

View File

@ -1,24 +1,21 @@
--- ---
- block:
- name: Installing vim - name: Installing vim
package: ansible.builtin.package:
name: "{{ vim_package_name }}" name: "{{ vim_package_name }}"
state: present state: present
- name: Creating configuration directory - name: Creating configuration directory
file: ansible.builtin.file:
state: directory state: directory
dest: /etc/vim dest: /etc/vim
owner: root owner: root
group: root group: root
mode: 0755 mode: "0755"
- name: Configure vim - name: Configure vim
template: ansible.builtin.template:
src: etc/vim/vimrc.local.j2 src: etc/vim/vimrc.local.j2
dest: /etc/vim/vimrc.local dest: /etc/vim/vimrc.local
owner: root owner: root
group: root group: root
mode: 0644 mode: "0644"
become: True
become_user: root