Remove the other Elasticsearch repo when switching versions
This commit is contained in:
parent
c2e51f8ecf
commit
486717bc6f
2 changed files with 12 additions and 1 deletions
|
|
@ -13,7 +13,16 @@
|
|||
|
||||
- name: RedHat - add Elasticsearch repo
|
||||
become: yes
|
||||
template: src=elasticsearch.repo dest=/etc/yum.repos.d/elasticsearch-{{ es_repo_name }}.repo
|
||||
template:
|
||||
src: 'elasticsearch.repo'
|
||||
dest: '/etc/yum.repos.d/elasticsearch-{{ es_repo_name }}.repo'
|
||||
when: es_use_repository
|
||||
|
||||
- name: RedHat - remove unused Elasticsearch repo
|
||||
become: yes
|
||||
template:
|
||||
src: 'elasticsearch.repo'
|
||||
dest: '/etc/yum.repos.d/elasticsearch-{{ es_other_repo_name }}.repo'
|
||||
when: es_use_repository
|
||||
|
||||
- name: RedHat - include versionlock
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue