diff --git a/tasks/general/software/packages.yml b/tasks/general/software/packages.yml index 7fc305f..8ea3f8b 100644 --- a/tasks/general/software/packages.yml +++ b/tasks/general/software/packages.yml @@ -1,6 +1,11 @@ --- # Cross-platform package management. +- name: Repo Cache Refresh + package: + update_cache: yes + when: ansible_pkg_mgr in ["apt", "pacman"] + - name: Install Repo Software package: name: @@ -11,19 +16,6 @@ - locate state: present -- name: Testing Package Cache Refresh - package: - update_cache: yes - when: ansible_os_family == "Debian" - -- name: Testing Apt Cache Refresh - apt: update_cache=yes - when: ansible_distribution in ["Debian", "Ubuntu"] - -- name: Testing Apt Cache Refresh 2 - apt: update_cache=yes - when: ansible_pkg_mgr == "apt" - - name: Remove Repo Software package: name: