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,14 @@
---
# Configuring git
- name: Configuring git username
ansible.builtin.git_config:
name: user.name
scope: global
value: "Emiliano Vavassori"
- name: Configuring git email
ansible.builtin.git_config:
name: user.email
scope: global
value: syntaxerrormmm@gmail.com

View file

@ -0,0 +1,9 @@
---
# git on alpine
- name: (alp) installing git
community.general.apk:
name: git
state: present
update_cache: true
become: true

View file

@ -0,0 +1,9 @@
---
# git on Archlinux
- name: (arch) installing git
community.general.pacman:
name: git
state: present
update_cache: true
become: true

View file

@ -0,0 +1,9 @@
---
# git on Debian
- name: (deb) installing git
ansible.builtin.apt:
name: git
state: present
update_cache: true
become: true

View file

@ -0,0 +1,9 @@
---
# git on RedHat
- name: (rHa) installing git
ansible.builtin.yum:
name: git
state: present
update_cache: true
become: true

View file

@ -0,0 +1,9 @@
---
# git on void
- name: (void) installing git
community.general.xbps:
name: git
state: present
update_cache: true
become: true

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

@ -0,0 +1,19 @@
---
# Installing and configuring git
- name: Installation
ansible.builtin.include_tasks: "install/{{ ansible_os_family | lower }}.yml"
args:
apply:
tags:
- git
- git-install
tags:
- git
- git-install
- name: Configuring git
ansible.builtin.import_tasks: configuration.yml
tags:
- git
- git-config