diff options
author | Martin Krizek <martin.krizek@gmail.com> | 2018-03-22 18:19:29 +0100 |
---|---|---|
committer | Sam Doran <sdoran@ansible.com> | 2018-03-22 13:19:29 -0400 |
commit | ab1db9bcb83b8b4840c6fe790315f4afe78ecc06 (patch) | |
tree | 5b39a0b1e9f3b1c542691227387265a69f8ce723 /test/integration/targets/yum | |
parent | fcbee7e40baa7403299b3de5cf391eb747ee716f (diff) | |
download | ansible-ab1db9bcb83b8b4840c6fe790315f4afe78ecc06.tar.gz |
yum: clean fake repos after tests run (#37770)
Diffstat (limited to 'test/integration/targets/yum')
-rw-r--r-- | test/integration/targets/yum/tasks/main.yml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/integration/targets/yum/tasks/main.yml b/test/integration/targets/yum/tasks/main.yml index 970c178211..4c0376ebc1 100644 --- a/test/integration/targets/yum/tasks/main.yml +++ b/test/integration/targets/yum/tasks/main.yml @@ -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 |