2 Star 1 Fork 47

KrisOtk/ansible-elk-deploy

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
00-download_files.yml 1.56 KB
一键复制 编辑 原始数据 按行查看 历史
乞丐亦异 提交于 2018-05-15 16:28 . Dev (#22)
- hosts: localhost
connection: local
become: no
gather_facts: no
vars_files:
- vars/download_urls.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
tags: redis
- include_role: name=deploy.Haproxy tasks_from=download
tags: haproxy
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/zhuwanqiang/ansible-elk-deploy.git
git@gitee.com:zhuwanqiang/ansible-elk-deploy.git
zhuwanqiang
ansible-elk-deploy
ansible-elk-deploy
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385