David Moreau-Simard 97e764be26 Add support for opensuse in configure-mirrors
Change-Id: Ic73b502277314555513e548aafb9231550fa1401
2017-09-07 20:22:41 +00:00

26 lines
549 B
YAML

# The apt module can not be used for this since it installs python-apt
# which can not work until this command fixes the cache.
- name: Update apt cache
become: yes
command: apt-get update
- name: Update dnf cache
become: yes
command: "{{ item }}"
with_items:
- dnf clean all
- dnf makecache
- name: Update yum cache
become: yes
command: "{{ item }}"
with_items:
- yum clean all
- yum makecache
- name: Update zypper cache
become: yes
command: "{{ item }}"
with_items:
- zypper clean
- zypper refresh