1 Star 0 Fork 48

MarsBighead/ansible-elk-deploy

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
00-download_files.yml 1.72 KB
一键复制 编辑 原始数据 按行查看 历史
Haibin Lee 提交于 2018-12-18 18:02 . WIP: search guard initial index
- hosts: localhost
connection: local
become: no
gather_facts: no
vars_files:
- vars/download_urls.yml
- vars/curator.yml
vars_prompt:
- name: "format"
prompt: "What type of files do you need?[rpm|deb]"
default: "rpm"
private: no
pre_tasks:
- name: Checking group_vars/all.yml
stat:
path: group_vars/all.yml
delegate_to: localhost
run_once: yes
become: no
register: result
- fail:
msg: |
Please create group_vars/all.yml from group_vars/all.yml.example,
and edit it to suit your environment before your deploy.
when: result.stat.exists == false
delegate_to: localhost
run_once: yes
become: no
- name: Create local downloaded_files directory
file:
path: downloaded_files
state: directory
tasks:
- include_role: name=deploy.ElasticSearch tasks_from=download
tags: elasticsearch
- include_role: name=deploy.Kibana tasks_from=download
tags: kibana
- include_role: name=deploy.Logstash tasks_from=download
tags: logstash
- include_role: name=deploy.Monit tasks_from=download
tags: monit
- include_role: name=deploy.Consul tasks_from=download
tags: consul
- include_role: name=deploy.Beats tasks_from=download
with_items:
- filebeat
- metricbeat
- packetbeat
loop_control:
loop_var: target
tags: beats
- include_role: name=deploy.Redis tasks_from=download
when: groups['redis'] | count > 0
tags: redis
# - include_role: name=deploy.Curator tasks_from=download
# vars:
# pkg: "{{ target | basename }}"
# target: "{{ pip_pkgs }}"
# tags: curator
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/MarsBighead/ansible-elk-deploy.git
git@gitee.com:MarsBighead/ansible-elk-deploy.git
MarsBighead
ansible-elk-deploy
ansible-elk-deploy
master

搜索帮助