Skip to content

Commit 696a548

Browse files
Merge pull request #2 from Efalia/add-config-system
Ajout d'une variable pour «optionnaliser» la gestion du repository
2 parents d4e8dd9 + b229e13 commit 696a548

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

defaults/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@ elasticsearch_heap_size_min: 1g
1313
elasticsearch_heap_size_max: 2g
1414

1515
elasticsearch_extra_options: ''
16+
17+
config_system: true

tasks/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,16 @@
1010
apt_key:
1111
url: https://artifacts.elastic.co/GPG-KEY-elasticsearch
1212
state: present
13+
when:
14+
- config_system
1315

1416
- name: Add Elasticsearch repository.
1517
apt_repository:
1618
repo: 'deb https://artifacts.elastic.co/packages/{{ elasticsearch_version }}/apt stable main'
1719
state: present
1820
update_cache: true
21+
when:
22+
- config_system
1923

2024
- name: Install Elasticsearch.
2125
package:

0 commit comments

Comments
 (0)