17 lines
535 B
YAML
17 lines
535 B
YAML
---
|
|
- name: "Fluentd | Write fluentd daemonset"
|
|
template:
|
|
src: fluentd-ds.yml.j2
|
|
dest: "{{ kube_config_dir }}/fluentd-ds.yaml"
|
|
register: fluentd_ds_manifest
|
|
|
|
- name: "Fluentd | Create fluentd daemonset"
|
|
kube:
|
|
filename: "{{kube_config_dir}}/fluentd-ds.yaml"
|
|
kubectl: "{{bin_dir}}/kubectl"
|
|
name: "fluentd-es-v{{ fluentd_version }}"
|
|
namespace: "{{system_namespace}}"
|
|
resource: "ds"
|
|
state: "{{ item | ternary('latest','present') }}"
|
|
with_items: "{{ fluentd_ds_manifest.changed }}"
|
|
run_once: true
|