代码拉取完成,页面将自动刷新
同步操作将从 乞丐亦异/ansible-elk-deploy 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
- 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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。