roles: kubernetes: preinstall: Add SUSE support

Add support for installing package dependencies and refreshing metadata
on SUSE distributions

Co-authored-by: Nirmoy Das <ndas@suse.de>
This commit is contained in:
Markos Chandras
2018-02-06 12:58:17 +00:00
parent 4ba25326ed
commit e42203a13e
3 changed files with 15 additions and 2 deletions

View File

@@ -143,6 +143,15 @@
- not is_atomic
tags: bootstrap-os
- name: Update package management cache (zypper) - SUSE
shell: zypper -n --gpg-auto-import-keys ref
register: make_cache_output
until: make_cache_output|succeeded
retries: 4
delay: "{{ retry_stagger | random + 3 }}"
when:
- ansible_pkg_mgr == 'zypper'
tags: bootstrap-os
- name: Update package management cache (APT)
apt: