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
c30ef3b0
Commit
c30ef3b0
authored
Jul 25, 2017
by
Daniel Berman
Committed by
GitHub
Jul 25, 2017
Browse files
Update main.yml
parent
7dbb17cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
roles/elasticsearch/tasks/main.yml
roles/elasticsearch/tasks/main.yml
+11
-9
No files found.
roles/elasticsearch/tasks/main.yml
View file @
c30ef3b0
...
...
@@ -4,11 +4,12 @@
#
# Add Elasticsearch apt key
-
name
:
Add Elasticsearch apt-key
apt_key
:
url
:
"
https://packages.elastic.co/GPG-KEY-elasticsearch"
state
:
present
-
name
:
Add Elasticsearch apt-key
apt_key
:
url
:
"
https://packages.elastic.co/GPG-KEY-elasticsearch"
state
:
present
# Add the Elasticsearch apt repo
-
name
:
Adding Elasticsearch repo
...
...
@@ -19,14 +20,14 @@
# Installing Elasticsearch
-
name
:
Update repositories cache and install Elasticsearch
apt
:
apt
:
name
:
elasticsearch
update_cache
:
yes
# Update Elasticsearch config file to allow access. To secure Elasticsearch, bind to 'localhost'.
-
name
:
Updating the config file to allow outside access
lineinfile
:
lineinfile
:
destfile
:
/etc/elasticsearch/elasticsearch.yml
regexp
:
'
network.host:'
line
:
'
network.host:
0.0.0.0'
...
...
@@ -34,13 +35,14 @@
# Update Elasticsearch port in config file
-
name
:
Updating the port in config file
lineinfile
:
lineinfile
:
destfile
:
/etc/elasticsearch/elasticsearch.yml
regexp
:
'
http.port:'
line
:
'
http.port:
9200'
# Start Elasticsearch
-
name
:
Starting Elasticsearch
service
:
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