zuul-jobs/roles/configure-mirrors/handlers/main.yaml
Sorin Sbarnea 9baebe3684 yamlint: EOF newlines and comments indent
Fixed two rules which where temporary disabled during introduction
of the linter.

Change-Id: Icd1e1b40b1e8207ab5ff7088a48e8f0a800e3aa8
2020-05-14 08:42:17 +00:00

34 lines
840 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"
# 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