Skip to content

Commit 97ab544

Browse files
committed
Fix issues
1 parent 93ce688 commit 97ab544

File tree

2 files changed

+21
-12
lines changed

2 files changed

+21
-12
lines changed

meta/main.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@
22
galaxy_info:
33
author: "Jasper N. Brouwer, Ramon de la Fuente"
44
role_name: vim
5+
namespace: "f500"
56
description: "Install Vim, set vimrc and use update-alternatives to add vim"
67
company: Future500
78
license: LGPL-3.0
8-
min_ansible_version: 1.6
9+
min_ansible_version: "1.6"
910
platforms:
10-
- name: Debian
11-
versions:
12-
- bullseye
13-
- bookworm
11+
- name: Debian
12+
versions:
13+
- bullseye
14+
- bookworm
1415
galaxy_tags:
1516
- system
1617
dependencies: []

tasks/main.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
---
2+
- name: Install vim
3+
ansible.builtin.apt:
4+
pkg: vim
5+
state: present
26

3-
- name: install vim
4-
apt: pkg=vim state=present
7+
- name: Write vimrc
8+
ansible.builtin.copy:
9+
src: vimrc
10+
dest: /etc/vim/vimrc
11+
owner: root
12+
group: root
13+
mode: "0644"
514

6-
- name: write vimrc
7-
copy: src=vimrc dest=/etc/vim/vimrc owner=root group=root mode=0644
8-
9-
- name: set vim alternatives
10-
alternatives: "name={{ item }} path=/usr/bin/vim.basic"
15+
- name: Set vim alternatives
16+
community.general.alternatives:
17+
name: "{{ item }}"
18+
path: "/usr/bin/vim.basic"
1119
with_items: [editor, ex, rview, rvim, vi, view, vim, vimdiff]

0 commit comments

Comments
 (0)