forked from ansible-collection/filebeat
#1001565 针对nginx日志采集
This commit is contained in:
parent
9fb9563f74
commit
b074dbbefa
|
@ -1,12 +1,4 @@
|
||||||
---
|
---
|
||||||
- name: Make Work directory
|
|
||||||
ansible.builtin.file:
|
|
||||||
path: "{{ work_path }}"
|
|
||||||
owner: filebeat
|
|
||||||
group: filebeat
|
|
||||||
state: directory
|
|
||||||
mode: '0755'
|
|
||||||
|
|
||||||
- name: Create Filebeat Group
|
- name: Create Filebeat Group
|
||||||
ansible.builtin.group:
|
ansible.builtin.group:
|
||||||
name: filebeat
|
name: filebeat
|
||||||
|
@ -21,6 +13,14 @@
|
||||||
state: present
|
state: present
|
||||||
uid: 1802
|
uid: 1802
|
||||||
|
|
||||||
|
- name: Make Work directory
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ work_path }}"
|
||||||
|
owner: filebeat
|
||||||
|
group: filebeat
|
||||||
|
state: directory
|
||||||
|
mode: '0755'
|
||||||
|
|
||||||
- name: Install Filebeat
|
- name: Install Filebeat
|
||||||
ansible.builtin.unarchive:
|
ansible.builtin.unarchive:
|
||||||
src: "{{ filebeat_download_url }}"
|
src: "{{ filebeat_download_url }}"
|
||||||
|
|
Loading…
Reference in New Issue