feat: Create role
This commit is contained in:
parent
82119b412d
commit
66408f4cba
@ -1,3 +1,3 @@
|
||||
# role_modele
|
||||
|
||||
Modèle
|
||||
Deploy vim and [pulsar89.5](https://pouet.chapril.org/@pulsar) preferences.
|
||||
|
@ -1,7 +1,7 @@
|
||||
galaxy_info:
|
||||
namespace: ykn
|
||||
author: pulsar89.5
|
||||
description: Rôle modèle
|
||||
description: Deploy vim and pulsar89.5 preferences.
|
||||
|
||||
license: GPL-3.0-or-later
|
||||
|
||||
|
25
tasks/main.yml
Normal file
25
tasks/main.yml
Normal file
@ -0,0 +1,25 @@
|
||||
---
|
||||
# tasks file for vim
|
||||
|
||||
- name: Uninstall nano
|
||||
ansible.builtin.apt:
|
||||
name: nano
|
||||
state: absent
|
||||
become: true
|
||||
|
||||
- name: Install packages
|
||||
ansible.builtin.apt:
|
||||
name:
|
||||
- vim
|
||||
- vim-airline
|
||||
- vim-lastplace
|
||||
become: true
|
||||
|
||||
- name: Deploy configuration
|
||||
ansible.builtin.template:
|
||||
src: vimrc.local.j2
|
||||
dest: /etc/vim/vimrc.local
|
||||
owner: root
|
||||
group: root
|
||||
mode: u=rw,g=r,o=r
|
||||
become: true
|
20
templates/vimrc.local.j2
Normal file
20
templates/vimrc.local.j2
Normal file
@ -0,0 +1,20 @@
|
||||
" {{ ansible_managed }}
|
||||
|
||||
set nocompatible
|
||||
set backspace=indent,eol,start
|
||||
set confirm
|
||||
set number
|
||||
set expandtab
|
||||
set smarttab
|
||||
set shiftwidth=2
|
||||
set tabstop=2
|
||||
|
||||
" Disable mouse
|
||||
set mouse=""
|
||||
set ttymouse=""
|
||||
|
||||
" Turn on syntax highlighting by default
|
||||
syntax on
|
||||
|
||||
" Configure airline plugin
|
||||
let g:airline#extensions#tabline#enabled = 1
|
Loading…
x
Reference in New Issue
Block a user