2017-01-27 07:33:01 +08:00
|
|
|
---
|
2017-08-10 14:48:53 +08: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-27 07:33:01 +08:00
|
|
|
- name: "Fluentd | Write fluentd daemonset"
|
2017-02-08 22:13:17 +08:00
|
|
|
template:
|
2017-01-27 07:33:01 +08: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 19:29:13 +08:00
|
|
|
command: "{{ bin_dir }}/kubectl apply -f {{ kube_config_dir }}/fluentd-ds.yaml -n kube-system"
|
2017-01-27 07:33:01 +08:00
|
|
|
run_once: true
|
2017-08-10 14:48:53 +08:00
|
|
|
when: fluentd_ds_manifest.changed
|