21 lines
551 B
YAML
21 lines
551 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
|