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,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