Sostituzione di prepare con un playbook che viene lanciato sulla macchina locale.
This commit is contained in:
parent
23343af106
commit
813cf57d54
78 changed files with 885 additions and 70 deletions
14
roles/git/tasks/configuration.yml
Normal file
14
roles/git/tasks/configuration.yml
Normal 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
|
9
roles/git/tasks/install/alpine.yml
Normal file
9
roles/git/tasks/install/alpine.yml
Normal file
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
# git on alpine
|
||||
|
||||
- name: (alp) installing git
|
||||
community.general.apk:
|
||||
name: git
|
||||
state: present
|
||||
update_cache: true
|
||||
become: true
|
9
roles/git/tasks/install/archlinux.yml
Normal file
9
roles/git/tasks/install/archlinux.yml
Normal file
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
# git on Archlinux
|
||||
|
||||
- name: (arch) installing git
|
||||
community.general.pacman:
|
||||
name: git
|
||||
state: present
|
||||
update_cache: true
|
||||
become: true
|
9
roles/git/tasks/install/debian.yml
Normal file
9
roles/git/tasks/install/debian.yml
Normal file
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
# git on Debian
|
||||
|
||||
- name: (deb) installing git
|
||||
ansible.builtin.apt:
|
||||
name: git
|
||||
state: present
|
||||
update_cache: true
|
||||
become: true
|
9
roles/git/tasks/install/redhat.yml
Normal file
9
roles/git/tasks/install/redhat.yml
Normal file
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
# git on RedHat
|
||||
|
||||
- name: (rHa) installing git
|
||||
ansible.builtin.yum:
|
||||
name: git
|
||||
state: present
|
||||
update_cache: true
|
||||
become: true
|
9
roles/git/tasks/install/void.yml
Normal file
9
roles/git/tasks/install/void.yml
Normal 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
19
roles/git/tasks/main.yml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue