forked from evolix/ansible-roles
Elasticsearch/head: use a custom tmpdir
This commit is contained in:
parent
c66438a2a3
commit
1a5f1a32a4
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
elasticsearch_plugin_head_home: /home/elasticsearch-head
|
|
||||||
elasticsearch_plugin_head_clone_dir: "{{ elasticsearch_plugin_head_home }}/www"
|
|
||||||
elasticsearch_plugin_head_owner: "elasticsearch-head"
|
elasticsearch_plugin_head_owner: "elasticsearch-head"
|
||||||
elasticsearch_plugin_head_group: "elasticsearch-head"
|
elasticsearch_plugin_head_group: "{{ elasticsearch_plugin_head_owner }}"
|
||||||
|
elasticsearch_plugin_head_home: "/home/{{ elasticsearch_plugin_head_owner }}"
|
||||||
|
elasticsearch_plugin_head_clone_dir: "{{ elasticsearch_plugin_head_home }}/www"
|
||||||
|
elasticsearch_plugin_head_tmp_dir: "{{ elasticsearch_plugin_head_home }}/tmp"
|
||||||
|
|
|
@ -24,4 +24,4 @@ galaxy_info:
|
||||||
# alphanumeric characters. Maximum 20 tags per role.
|
# alphanumeric characters. Maximum 20 tags per role.
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- evogalaxy.nodejs
|
- nodejs
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
shell: /bin/false
|
shell: /bin/false
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- name: Head repository is check-out
|
- name: Head repository is checked-out
|
||||||
git:
|
git:
|
||||||
repo: "git://github.com/mobz/elasticsearch-head.git"
|
repo: "git://github.com/mobz/elasticsearch-head.git"
|
||||||
dest: "{{ elasticsearch_plugin_head_clone_dir }}"
|
dest: "{{ elasticsearch_plugin_head_clone_dir }}"
|
||||||
|
@ -17,12 +17,19 @@
|
||||||
tags:
|
tags:
|
||||||
- packages
|
- packages
|
||||||
|
|
||||||
|
- name: Create tmpdir
|
||||||
|
file:
|
||||||
|
dest: "{{ elasticsearch_plugin_head_tmp_dir }}"
|
||||||
|
state: directory
|
||||||
|
|
||||||
- name: NPM packages for head are installed
|
- name: NPM packages for head are installed
|
||||||
npm:
|
npm:
|
||||||
path: "{{ elasticsearch_plugin_head_clone_dir }}"
|
path: "{{ elasticsearch_plugin_head_clone_dir }}"
|
||||||
tags:
|
tags:
|
||||||
- packages
|
- packages
|
||||||
- npm
|
- npm
|
||||||
|
environment:
|
||||||
|
TMPDIR: "{{ elasticsearch_plugin_head_tmp_dir }}"
|
||||||
become_user: "{{ elasticsearch_plugin_head_owner }}"
|
become_user: "{{ elasticsearch_plugin_head_owner }}"
|
||||||
|
|
||||||
- name: Elasticsearch HTTP/CORS are enabled
|
- name: Elasticsearch HTTP/CORS are enabled
|
||||||
|
|
Loading…
Reference in a new issue