From d2d63d58418c792d3ed5192a649acec9400f84e6 Mon Sep 17 00:00:00 2001 From: Radar231 Date: Mon, 3 Jan 2022 10:08:31 -0500 Subject: [PATCH] cleanup: removed centos code, cleaned up debian & ubuntu references --- README.md | 2 -- tasks/main.yml | 10 ++-------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 1d67473..f181a55 100644 --- a/README.md +++ b/README.md @@ -4,5 +4,3 @@ This role will update the package cache on the target host. -This role should work on both Ubuntu and CentOS based hosts. - diff --git a/tasks/main.yml b/tasks/main.yml index 71491b9..803ee13 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -3,8 +3,6 @@ # # This role will update the package cache on the target host. # -# This role should work on both Ubuntu and CentOS based hosts. -# ########################################################################### # # NOTE: @@ -12,22 +10,18 @@ # done by doing a 'gather_facts' action); # # {{ ansible_distribution }} +# {{ ansible_os_family }} # ########################################################################### # tasks file for update_cache - debug: msg="Updating package cache" -- name: updated package cache (Ubuntu) +- name: updated package cache (Debian based repos) apt: update-cache: true when: ansible_os_family == "Debian" -- name: update package cache (CentOS) - yum: - update_cache: true - when: ansible_distribution == "CentOS" - - name: update package cache (Alpine) apk: update_cache: true