Skip to content

Commit

Permalink
Merge pull request #2 from Efalia/add-config-system
Browse files Browse the repository at this point in the history
Ajout d'une variable pour «optionnaliser» la gestion du repository
  • Loading branch information
Guillaume-Rossignol authored Nov 19, 2024
2 parents d4e8dd9 + b229e13 commit 696a548
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ elasticsearch_heap_size_min: 1g
elasticsearch_heap_size_max: 2g

elasticsearch_extra_options: ''

config_system: true
4 changes: 4 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,16 @@
apt_key:
url: https://artifacts.elastic.co/GPG-KEY-elasticsearch
state: present
when:
- config_system

- name: Add Elasticsearch repository.
apt_repository:
repo: 'deb https://artifacts.elastic.co/packages/{{ elasticsearch_version }}/apt stable main'
state: present
update_cache: true
when:
- config_system

- name: Install Elasticsearch.
package:
Expand Down

0 comments on commit 696a548

Please sign in to comment.