Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Ijaz Ahmad
ansible-elk-playbook
Commits
caa6fca9
Commit
caa6fca9
authored
Jul 24, 2017
by
Daniel Berman
Committed by
GitHub
Jul 24, 2017
Browse files
Create main.yml
parent
6ecd2714
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
roles/elasticsearch/tasks/main.yml
roles/elasticsearch/tasks/main.yml
+30
-0
No files found.
roles/elasticsearch/tasks/main.yml
0 → 100644
View file @
caa6fca9
---
#
# Installing Elasticsearch
#
# Add apt-key
-
name
:
Add apt-key
apt_key
:
url
:
"
https://artifacts.elastic.co/GPG-KEY-elasticsearch"
state
:
present
# Add the Elasticsearch APT-repository
-
name
:
Adding Elasticsearch APT repository
apt_repository
:
repo
:
deb https://artifacts.elastic.co/packages/5.x/apt stable main
state
:
present
# Install Elasticsearch
-
name
:
Update repos cache, install Elasticsearch
apt
:
name
:
elasticsearch
update_cache
:
yes
# Update Elasticsearch config file to allow remote connections
-
name
:
Updating config file to allow outside access
lineinfile
:
destfile
:
/etc/elasticsearch/elasticsearch.yml
regexp
:
'
network.host:'
line
:
'
network.host:
0.0.0.0'
# Start Elasticsearch
-
name
:
Starting Elasticsearch
service
:
name
:
elasticsearch
state
:
started
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment