Andreas Jaeger 0506323c2b Ansible linting fixes
Fix a few problems noticed when using this in project-config:
* Ignore apt-get warning in configure-mirrors
* All tasks should be named in upload-logs, emit-job-header
* use git_config in mirror-workspace-git-repos
* Ignore git warnings in mirror-workspace-git-repos

Change-Id: Ibcdc8d5a42fb081b5faa0cc89460e4cf88d369ba
2017-10-27 19:18:15 +02:00

29 lines
641 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 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