Sostituzione di prepare con un playbook che viene lanciato sulla macchina locale.

This commit is contained in:
Emiliano Vavassori 2024-10-01 00:19:21 +02:00
parent 23343af106
commit 813cf57d54
78 changed files with 885 additions and 70 deletions

View file

@ -0,0 +1,2 @@
---
dotfdir: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.dotfiles"

View file

@ -0,0 +1,18 @@
---
# Configuring vim
- name: Linking main file
ansible.builtin.file:
src: "{{ dotfdir }}/vimrc"
dest: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.vimrc"
state: link
owner: syntaxerrormmm
group: syntaxerrormmm
- name: Linking main folder
ansible.builtin.file:
src: "{{ dotfdir }}/vim"
dest: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.vim"
state: link
owner: syntaxerrormmm
group: syntaxerrormmm

View file

@ -0,0 +1,7 @@
---
- name: (alp) installing vim
community.general.apk:
name: vim
state: present
update_cache: true
become: true

View file

@ -0,0 +1,7 @@
---
- name: (arch) installing vim
community.general.pacman:
name: vim
state: present
update_cache: true
become: true

View file

@ -0,0 +1,7 @@
---
- name: (deb) installing vim
ansible.builtin.apt:
name: vim
state: present
update_cache: true
become: true

View file

@ -0,0 +1,7 @@
---
- name: (rHa) installing vim
ansible.builtin.yum:
name: vim
state: present
update_cache: true
become: true

View file

@ -0,0 +1,7 @@
---
- name: (void) installing Vim
community.general.xbps:
name: vim
state: present
update_cache: true
become: true

19
roles/vim/tasks/main.yml Normal file
View file

@ -0,0 +1,19 @@
---
# Vim
- name: Installation
ansible.builtin.include_tasks: "install/{{ ansible_os_family | lower }}.yml"
args:
apply:
tags:
- vim
- vim-install
tags:
- vim
- vim-install
- name: Configuration
ansible.builtin.import_tasks: configuration.yml
tags:
- vim
- vim-config