Get Ansible to remove all older repo files

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2017-08-02 08:54:05 +00:00
parent db391b08ee
commit 753f640cd6

View file

@ -63,16 +63,6 @@
- packages
- yumrepos
- name: add infrastructure repo
file: path="/etc/yum.repos.d/{{ item }}" state=absent
with_items:
- infrastructure.repo
- infrastructure-testing.repo
tags:
- config
- packages
- yumrepos
- name: add infrastructure tags repo - RHEL
copy: src="{{ files }}/common/rhel-infra-tags.repo" dest="/etc/yum.repos.d/infra-tags.repo"
when: (ansible_distribution == 'RedHat' or ansible_distribution == 'CentOS')
@ -104,3 +94,17 @@
- config
- packages
- yumrepos
- name: Make sure older infrastructure tags repos no longer exist
file: path="/etc/yum.repos.d/{{item}}" state=absent
with_items:
- fedora-infra-tags.repo
- fedora-infra-tags-stg.repo
- rhel-infra-tags.repo
- rhel-infra-tags-stg.repo
- infrastructure.repo
- infrastructure-testing.repo
tags:
- config
- packages
- yumrepos