Pulizia generale dei ruoli: le installazioni systemwide sono nel deploy di ansible_mgmt.
This commit is contained in:
parent
24908aa484
commit
353f316c1e
71 changed files with 5 additions and 885 deletions
2
roles/vim-user-cfg/defaults/main.yml
Normal file
2
roles/vim-user-cfg/defaults/main.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
---
|
||||
dotfdir: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.dotfiles"
|
14
roles/vim-user-cfg/tasks/config/main.yml
Normal file
14
roles/vim-user-cfg/tasks/config/main.yml
Normal file
|
@ -0,0 +1,14 @@
|
|||
---
|
||||
# Configuring vim
|
||||
|
||||
- name: Linking main file
|
||||
ansible.builtin.file:
|
||||
src: "{{ dotfdir }}/vimrc"
|
||||
dest: "{{ lookup('ansible.builtin.env', 'HOME') }}/.vimrc"
|
||||
state: link
|
||||
|
||||
- name: Linking main folder
|
||||
ansible.builtin.file:
|
||||
src: "{{ dotfdir }}/vim"
|
||||
dest: "{{ lookup('ansible.builtin.env', 'HOME') }}/.vim"
|
||||
state: link
|
14
roles/vim-user-cfg/tasks/config/pkgman/main.yml
Normal file
14
roles/vim-user-cfg/tasks/config/pkgman/main.yml
Normal file
|
@ -0,0 +1,14 @@
|
|||
---
|
||||
# Configuring vim-plug
|
||||
|
||||
- name: Installation
|
||||
ansible.builtin.import_tasks: installation.yml
|
||||
tags:
|
||||
- vim-plug
|
||||
- vim-plug-install
|
||||
|
||||
- name: Configuration
|
||||
ansible.builtin.command:
|
||||
cmd: vim +PlugInstall +qall
|
||||
become: true
|
||||
become_user: "{{ additional_user }}"
|
7
roles/vim-user-cfg/tasks/install/alpine.yml
Normal file
7
roles/vim-user-cfg/tasks/install/alpine.yml
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
- name: (alp) installing vim
|
||||
community.general.apk:
|
||||
name: vim
|
||||
state: present
|
||||
update_cache: true
|
||||
become: true
|
7
roles/vim-user-cfg/tasks/install/archlinux.yml
Normal file
7
roles/vim-user-cfg/tasks/install/archlinux.yml
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
- name: (arch) installing vim
|
||||
community.general.pacman:
|
||||
name: vim
|
||||
state: present
|
||||
update_cache: true
|
||||
become: true
|
7
roles/vim-user-cfg/tasks/install/debian.yml
Normal file
7
roles/vim-user-cfg/tasks/install/debian.yml
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
- name: (deb) installing vim
|
||||
ansible.builtin.apt:
|
||||
name: vim
|
||||
state: present
|
||||
update_cache: true
|
||||
become: true
|
7
roles/vim-user-cfg/tasks/install/redhat.yml
Normal file
7
roles/vim-user-cfg/tasks/install/redhat.yml
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
- name: (rHa) installing vim
|
||||
ansible.builtin.yum:
|
||||
name: vim
|
||||
state: present
|
||||
update_cache: true
|
||||
become: true
|
7
roles/vim-user-cfg/tasks/install/void.yml
Normal file
7
roles/vim-user-cfg/tasks/install/void.yml
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
- name: (void) installing Vim
|
||||
community.general.xbps:
|
||||
name: vim
|
||||
state: present
|
||||
update_cache: true
|
||||
become: true
|
18
roles/vim-user-cfg/tasks/main.yml
Normal file
18
roles/vim-user-cfg/tasks/main.yml
Normal file
|
@ -0,0 +1,18 @@
|
|||
---
|
||||
# Vim
|
||||
|
||||
- name: Installation
|
||||
ansible.builtin.package:
|
||||
name: vim
|
||||
state: present
|
||||
update_cache: true
|
||||
become: true
|
||||
tags:
|
||||
- vim
|
||||
- vim-install
|
||||
|
||||
- name: Configuration
|
||||
ansible.builtin.import_tasks: configuration.yml
|
||||
tags:
|
||||
- vim
|
||||
- vim-config
|
Loading…
Add table
Add a link
Reference in a new issue