Remove tests, start using ansible_pkg_mgr. :D

This commit is contained in:
Hyperling 2021-02-01 06:36:00 -06:00
parent 3e78c363c7
commit c7b0c4f265

View File

@ -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: