2017-01-26 23:33:01 +00:00
|
|
|
---
|
2017-08-10 06:48:53 +00:00
|
|
|
- name: "Fluentd | copy config file"
|
|
|
|
template:
|
|
|
|
src: fluentd-config.yml.j2
|
|
|
|
dest: "{{ kube_config_dir }}/fluentd-config.yaml"
|
|
|
|
register: fluentd_config
|
|
|
|
|
|
|
|
- name: "Fluentd | create configMap"
|
|
|
|
command: "{{bin_dir}}/kubectl apply -f {{ kube_config_dir }}/fluentd-config.yaml"
|
|
|
|
run_once: true
|
|
|
|
when: fluentd_config.changed
|
|
|
|
|
2017-01-26 23:33:01 +00:00
|
|
|
- name: "Fluentd | Write fluentd daemonset"
|
2017-02-08 14:13:17 +00:00
|
|
|
template:
|
2017-01-26 23:33:01 +00:00
|
|
|
src: fluentd-ds.yml.j2
|
|
|
|
dest: "{{ kube_config_dir }}/fluentd-ds.yaml"
|
|
|
|
register: fluentd_ds_manifest
|
|
|
|
|
|
|
|
- name: "Fluentd | Create fluentd daemonset"
|
2018-03-30 11:29:13 +00:00
|
|
|
command: "{{ bin_dir }}/kubectl apply -f {{ kube_config_dir }}/fluentd-ds.yaml -n kube-system"
|
2017-01-26 23:33:01 +00:00
|
|
|
run_once: true
|
2017-08-10 06:48:53 +00:00
|
|
|
when: fluentd_ds_manifest.changed
|