Get Ansible to remove all older repo files
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
db391b08ee
commit
753f640cd6
1 changed files with 14 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue