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,5 @@
---
- name: repolist
ansible.builtin.command: yum repolist
become: true
become_user: root

View file

@ -0,0 +1,10 @@
---
- name: (alp) installing plugin dependencies
community.general.apk:
name:
- nodejs
- npm
- yarn
state: present
update_cache: true
become: true

View file

@ -0,0 +1,10 @@
---
- name: (arch) installing plugin dependencies
community.general.pacman:
name:
- nodejs
- npm
- yarn
state: present
update_cache: true
become: true

View file

@ -0,0 +1,10 @@
---
- name: (deb) installing plugin dependencies
ansible.builtin.apt:
name:
- nodejs
- npm
- yarnpkg
state: present
update_cache: true
become: true

View file

@ -0,0 +1,34 @@
---
- name: (rHa) installing plugin dependencies
ansible.builtin.yum:
name:
- nodejs
- npm
state: present
update_cache: true
become: true
# Yarn is available in other repository.
- name: (rHa) installing yarn repo
ansible.builtin.get_url:
url: "https://dl.yarnpkg.com/rpm/yarn.repo"
dest: /etc/yum.repos.d/yarn.repo
become: true
notify: repolist
- name: (rHa) installing yarn gpg key
ansible.builtin.rpm_key:
key: "http://dl.yarnpkg.com/rpm/pubkey.gpg"
state: present
become: true
notify: repolist
- name: Flushing handlers
ansible.builtin.meta: flush_handlers
- name: (rHa) installing yarn
ansible.builtin.yum:
name: yarn
state: present
update_cache: true
become: true

View file

@ -0,0 +1,9 @@
---
- name: (void) installing plugin dependencies
community.general.xbps:
name:
- nodejs
- yarn-bin
state: present
update_cache: true
become: true

View file

@ -0,0 +1,20 @@
---
# Installation tasks
- name: Installing plugin dependencies
ansible.builtin.include_tasks: "depend/{{ ansible_os_family | lower }}.yml"
- name: Creating autoload dir
ansible.builtin.file:
path: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.vim/autoload"
state: directory
owner: syntaxerrormmm
group: syntaxerrormmm
- name: Installing vim-plug from git
ansible.builtin.get_url:
url: "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim"
dest: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.vim/autoload/plug.vim"
owner: syntaxerrormmm
group: syntaxerrormmm
mode: '0644'

View file

@ -0,0 +1,12 @@
---
# Configuring vim-plug
- name: Installation
ansible.builtin.import_tasks: installation.yml
tags:
- vim-plug
- vim-plug-install
- name: Configuration
ansible.builtin.shell: >-
vim +PlugInstall +qall