ci: fix linting
This commit is contained in:
parent
38f8ec3bea
commit
ce6b5f8961
@ -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
|
|
||||||
|
@ -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
|
|
||||||
|
@ -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:
|
||||||
|
@ -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
|
|
||||||
|
Loading…
Reference in New Issue
Block a user