Move all shared into this new repo
This commit is contained in:
24
db/elasticsearch-6.x/tasks/main.yml
Normal file
24
db/elasticsearch-6.x/tasks/main.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
---
|
||||
# Add Elasticsearch GPG Key
|
||||
- name: Addding Elasticsearch sources GPG key
|
||||
apt_key: url='https://artifacts.elastic.co/GPG-KEY-elasticsearch' state=present
|
||||
|
||||
# Add Elasticsearch repositories for Debian 8
|
||||
- name: Adding Elasticsearch sources
|
||||
apt_repository: repo='deb https://artifacts.elastic.co/packages/6.x/apt stable main' state=present
|
||||
|
||||
# Install Elasticsearch
|
||||
- name: Installing Elasticsearch
|
||||
apt:
|
||||
update_cache: yes
|
||||
state: present
|
||||
name:
|
||||
- elasticsearch
|
||||
|
||||
# Fix Permissions
|
||||
- name: Fixing permissions on /etc/init.d/elasticsearch
|
||||
file: path=/etc/init.d/elasticsearch owner=root group=root mode=0755 state=file
|
||||
|
||||
# Enable service in systemd (debian does not start this daemon by default, which is not the norm)
|
||||
- name: Enabling elasticsearch.service systemd unit
|
||||
systemd: name=elasticsearch enabled=yes state=started
|
||||
Reference in New Issue
Block a user