cleanup: removed centos code, cleaned up debian & ubuntu references

This commit is contained in:
Radar231 2022-01-03 10:08:31 -05:00
parent 9529180f28
commit d2d63d5841
2 changed files with 2 additions and 10 deletions

View File

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

View File

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