From 47ffd49eed58c5b7dc337213da80793a1953c22d Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Mon, 23 Dec 2024 22:46:00 +0100 Subject: [PATCH] Semplifico installazione git. --- roles/git/tasks/install/alpine.yml | 9 --------- roles/git/tasks/install/archlinux.yml | 9 --------- roles/git/tasks/install/debian.yml | 9 --------- roles/git/tasks/install/redhat.yml | 9 --------- roles/git/tasks/install/void.yml | 9 --------- roles/git/tasks/main.yml | 11 +++++------ 6 files changed, 5 insertions(+), 51 deletions(-) delete mode 100644 roles/git/tasks/install/alpine.yml delete mode 100644 roles/git/tasks/install/archlinux.yml delete mode 100644 roles/git/tasks/install/debian.yml delete mode 100644 roles/git/tasks/install/redhat.yml delete mode 100644 roles/git/tasks/install/void.yml diff --git a/roles/git/tasks/install/alpine.yml b/roles/git/tasks/install/alpine.yml deleted file mode 100644 index 6d98dcc..0000000 --- a/roles/git/tasks/install/alpine.yml +++ /dev/null @@ -1,9 +0,0 @@ ---- -# git on alpine - -- name: (alp) installing git - community.general.apk: - name: git - state: present - update_cache: true - become: true diff --git a/roles/git/tasks/install/archlinux.yml b/roles/git/tasks/install/archlinux.yml deleted file mode 100644 index 3a3d7ec..0000000 --- a/roles/git/tasks/install/archlinux.yml +++ /dev/null @@ -1,9 +0,0 @@ ---- -# git on Archlinux - -- name: (arch) installing git - community.general.pacman: - name: git - state: present - update_cache: true - become: true diff --git a/roles/git/tasks/install/debian.yml b/roles/git/tasks/install/debian.yml deleted file mode 100644 index facc765..0000000 --- a/roles/git/tasks/install/debian.yml +++ /dev/null @@ -1,9 +0,0 @@ ---- -# git on Debian - -- name: (deb) installing git - ansible.builtin.apt: - name: git - state: present - update_cache: true - become: true diff --git a/roles/git/tasks/install/redhat.yml b/roles/git/tasks/install/redhat.yml deleted file mode 100644 index 2b57073..0000000 --- a/roles/git/tasks/install/redhat.yml +++ /dev/null @@ -1,9 +0,0 @@ ---- -# git on RedHat - -- name: (rHa) installing git - ansible.builtin.yum: - name: git - state: present - update_cache: true - become: true diff --git a/roles/git/tasks/install/void.yml b/roles/git/tasks/install/void.yml deleted file mode 100644 index b4f4f6b..0000000 --- a/roles/git/tasks/install/void.yml +++ /dev/null @@ -1,9 +0,0 @@ ---- -# git on void - -- name: (void) installing git - community.general.xbps: - name: git - state: present - update_cache: true - become: true diff --git a/roles/git/tasks/main.yml b/roles/git/tasks/main.yml index a124777..2b8fd0b 100644 --- a/roles/git/tasks/main.yml +++ b/roles/git/tasks/main.yml @@ -2,12 +2,11 @@ # Installing and configuring git - name: Installation - ansible.builtin.include_tasks: "install/{{ ansible_os_family | lower }}.yml" - args: - apply: - tags: - - git - - git-install + ansible.builtin.package: + name: git + state: present + update_cache: true + become: true tags: - git - git-install