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