Allow not installing Elasticsearch deb repository key
If a variable is set in Ansible, there is no way to unset it ever again, i.e. 'null' or '~' do not work. Since this value is set in defaults we have to check for content instead of defined.
This commit is contained in:
parent
b37723aa1f
commit
596f313b17
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@
|
|||
apt_key:
|
||||
url: '{{ es_apt_key }}'
|
||||
state: present
|
||||
when: es_apt_key is defined
|
||||
when: es_apt_key | string
|
||||
|
||||
- name: Debian - Add elasticsearch repository
|
||||
apt_repository:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue