Add option for disable the addition of official repository
This commit is contained in:
parent
5b1d028bd2
commit
812faf9596
4 changed files with 6 additions and 3 deletions
|
|
@ -43,12 +43,13 @@
|
|||
apt_key:
|
||||
url: '{{ es_apt_key }}'
|
||||
state: present
|
||||
when: es_apt_key | string
|
||||
when: es_add_repository and es_apt_key | string
|
||||
|
||||
- name: Debian - Add elasticsearch repository
|
||||
apt_repository:
|
||||
repo: '{{ item.repo }}'
|
||||
state: '{{ item.state }}'
|
||||
when: es_add_repository
|
||||
with_items:
|
||||
- { repo: "{{ es_apt_url_old }}", state: "absent" }
|
||||
- { repo: "{{ es_apt_url }}", state: "present" }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue