You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
708 B

  1. ---
  2. - name: "Fluentd | copy config file"
  3. template:
  4. src: fluentd-config.yml.j2
  5. dest: "{{ kube_config_dir }}/fluentd-config.yaml"
  6. register: fluentd_config
  7. - name: "Fluentd | create configMap"
  8. command: "{{bin_dir}}/kubectl apply -f {{ kube_config_dir }}/fluentd-config.yaml"
  9. run_once: true
  10. when: fluentd_config.changed
  11. - name: "Fluentd | Write fluentd daemonset"
  12. template:
  13. src: fluentd-ds.yml.j2
  14. dest: "{{ kube_config_dir }}/fluentd-ds.yaml"
  15. register: fluentd_ds_manifest
  16. - name: "Fluentd | Create fluentd daemonset"
  17. command: "{{ bin_dir }}/kubectl apply -f {{ kube_config_dir }}/fluentd-ds.yaml -n {{ system_namespace }}"
  18. run_once: true
  19. when: fluentd_ds_manifest.changed