cleanup: removed centos code, cleaned up debian & ubuntu references
This commit is contained in:
parent
9529180f28
commit
d2d63d5841
|
@ -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.
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue