mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 13:20:23 -07:00
yum: clean fake repos after tests run (#37770)
This commit is contained in:
parent
fcbee7e40b
commit
ab1db9bcb8
2 changed files with 15 additions and 1 deletions
|
@ -48,7 +48,14 @@
|
|||
- ansible_distribution in ['RedHat', 'CentOS', 'ScientificLinux', 'Fedora']
|
||||
- ansible_python.version.major == 2
|
||||
|
||||
- include: 'repo.yml'
|
||||
- block:
|
||||
- include: 'repo.yml'
|
||||
always:
|
||||
- yum_repository:
|
||||
name: "{{ item }}"
|
||||
state: absent
|
||||
with_items: "{{ repos }}"
|
||||
- command: yum clean metadata
|
||||
when:
|
||||
- ansible_distribution in ['RedHat', 'CentOS', 'ScientificLinux', 'Fedora']
|
||||
- ansible_python.version.major == 2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue