26 lines
721 B
YAML
26 lines
721 B
YAML
- name: Install APT key
|
|
apt_key:
|
|
url: https://packages.fluentbit.io/fluentbit.key
|
|
state: present
|
|
|
|
- name: Install APT repository
|
|
apt_repository:
|
|
repo: "deb https://packages.fluentbit.io/debian/{{ ansible_distribution_release }} {{ ansible_distribution_release }} main"
|
|
state: present
|
|
update_cache: true
|
|
|
|
- name: Install fluent-bit
|
|
apt:
|
|
name: fluent-bit
|
|
|
|
- name: Copy fluent-bit configuration
|
|
template:
|
|
src: "{{ role_path }}/fluent-bit.conf.j2"
|
|
dest: /etc/fluent-bit/fluent-bit.conf
|
|
notify: restart fluent-bit
|
|
|
|
- name: Copy fluent-bit parsers configuration
|
|
template:
|
|
src: "{{ role_path }}/parsers.conf.j2"
|
|
dest: /etc/fluent-bit/parsers.conf
|
|
notify: restart fluent-bit
|