Adding ubuntu directions to elasti role
This commit is contained in:
parent
79b7a915ac
commit
3721747f01
@ -4,25 +4,29 @@
|
||||
- name: Test role
|
||||
debug: var=cluster_name
|
||||
|
||||
- name: Install Elastic GPG Key
|
||||
become: true
|
||||
apt_key:
|
||||
url: "https://artifacts.elastic.co/GPG-KEY-elasticsearch"
|
||||
state: present
|
||||
id: 46095ACC8548582C1A2699A9D27D666CD88E42B4
|
||||
- name: Install Elastic Repo
|
||||
include: install-repo.yml
|
||||
when: ansible_distribution == "Ubuntu"
|
||||
|
||||
- name: Install apt-transport-https
|
||||
become: true
|
||||
apt:
|
||||
name: apt-transport-https
|
||||
#- name: Install Elastic GPG Key
|
||||
#become: true
|
||||
#apt_key:
|
||||
#url: "https://artifacts.elastic.co/GPG-KEY-elasticsearch"
|
||||
#state: present
|
||||
#id: 46095ACC8548582C1A2699A9D27D666CD88E42B4
|
||||
|
||||
- name: Add Elastic Repo
|
||||
become: true
|
||||
copy:
|
||||
dest: '/etc/apt/sources.list.d/elastic-7.x.list'
|
||||
content: "deb https://artifacts.elastic.co/packages/7.x/apt stable main"
|
||||
#- name: Install apt-transport-https
|
||||
# become: true
|
||||
#apt:
|
||||
#name: apt-transport-https
|
||||
|
||||
- name: Update Packages
|
||||
become: true
|
||||
apt:
|
||||
update_cache: true
|
||||
#- name: Add Elastic Repo
|
||||
# become: true
|
||||
# copy:
|
||||
# dest: '/etc/apt/sources.list.d/elastic-7.x.list'
|
||||
# content: "deb https://artifacts.elastic.co/packages/7.x/apt stable main"
|
||||
|
||||
#- name: Update Packages
|
||||
#become: true
|
||||
# apt:
|
||||
# update_cache: true
|
||||
|
8
roles/elasticsearch/tasks/ubuntu.yml
Normal file
8
roles/elasticsearch/tasks/ubuntu.yml
Normal file
@ -0,0 +1,8 @@
|
||||
|
||||
|
||||
- name: Install ElasticSearch from apt
|
||||
become: true
|
||||
apt:
|
||||
name: elasticsearch
|
||||
|
||||
- name:
|
Loading…
Reference in New Issue
Block a user