bee0c6ae2f
For some reason matchtask doesn't match includes, matchplay does so use that instead. Change-Id: I040f7f3394503e92d06c05e8ff671a43b14baebc
34 lines
838 B
YAML
34 lines
838 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
|
|
# ANSIBLE0006: ignore, since we cannot use the apt module
|
|
tags:
|
|
- skip_ansible_lint
|
|
|
|
- name: Update yum/dnf cache
|
|
become: yes
|
|
command: "{{ zj_command }}"
|
|
args:
|
|
warn: false
|
|
with_items:
|
|
- "{{ ansible_pkg_mgr }} clean all"
|
|
- "{{ ansible_pkg_mgr }} makecache -v"
|
|
loop_control:
|
|
loop_var: zj_command
|
|
# verbose is needed in order to make it possible to debug potential failures
|
|
|
|
- name: Update zypper cache
|
|
become: yes
|
|
command: "{{ zj_command }}"
|
|
with_items:
|
|
- zypper clean
|
|
- zypper refresh
|
|
loop_control:
|
|
loop_var: zj_command
|
|
|
|
- name: Update Gentoo cache
|
|
become: yes
|
|
command: emerge-webrsync
|