Co-authored-by: Tyler Smalley <tylersmalley@me.com> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Jonathan Budzenski <jon@budzenski.me> Co-authored-by: Tyler Smalley <tylersmalley@me.com>
26 lines
749 B
YAML
26 lines
749 B
YAML
- name: find docker image
|
|
find:
|
|
paths: /packages/
|
|
patterns: kibana-*-docker-image.tar.gz
|
|
register: kibana_docker
|
|
|
|
- name: load image
|
|
become: yes
|
|
docker_image:
|
|
name: kibana
|
|
load_path: "{{ kibana_docker.files[0].path }}"
|
|
timeout: 300
|
|
source: load
|
|
state: present
|
|
|
|
- name: start kibana
|
|
become: yes
|
|
docker_container:
|
|
name: kibana
|
|
image: "{{ kibana_docker.files[0].path | basename| regex_replace('kibana-(.*)-docker-image.tar.gz', 'docker.elastic.co/kibana/kibana:\\1') }}"
|
|
network_mode: host
|
|
env:
|
|
SERVER_HOST: 0.0.0.0
|
|
ELASTICSEARCH_HOSTS: http://192.168.50.1:9200
|
|
ELASTICSEARCH_USERNAME: "{{ elasticsearch_username }}"
|
|
ELASTICSEARCH_PASSWORD: "{{ elasticsearch_password }}"
|