509880073e
This is no longer present in Ansible 9. Removing these upsets ansible-lint, so those errors are ignored. The base roles job has bitrotted on centos-7 and bionic due to a bad voluptuous release used in an stestr test. That is fixed in this change as well. Change-Id: I67886d5ad82ab590979f82bd102d6f974b9d4421
32 lines
816 B
YAML
32 lines
816 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 }}"
|
|
with_items:
|
|
- "{{ ansible_pkg_mgr }} clean all"
|
|
# verbose is needed in order to make it possible to debug potential failures
|
|
- "{{ ansible_pkg_mgr }} makecache -v"
|
|
loop_control:
|
|
loop_var: zj_command
|
|
|
|
- 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
|