dcd89b2686
This has syntax errors. This reverts commit d3128dab9528c44c58b7e1bff2eb834578b3cb70. Change-Id: Ida6569d384f50095cc228625c7d6e73e154270ae
26 lines
549 B
YAML
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 |