We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d4e8dd9 + b229e13 commit 696a548Copy full SHA for 696a548
defaults/main.yml
@@ -13,3 +13,5 @@ elasticsearch_heap_size_min: 1g
13
elasticsearch_heap_size_max: 2g
14
15
elasticsearch_extra_options: ''
16
+
17
+config_system: true
tasks/main.yml
@@ -10,12 +10,16 @@
10
apt_key:
11
url: https://artifacts.elastic.co/GPG-KEY-elasticsearch
12
state: present
+ when:
+ - config_system
- name: Add Elasticsearch repository.
apt_repository:
18
repo: 'deb https://artifacts.elastic.co/packages/{{ elasticsearch_version }}/apt stable main'
19
20
update_cache: true
21
22
23
24
- name: Install Elasticsearch.
25
package:
0 commit comments