label_and_wait.yaml 339 B

12345678910
  1. ---
  2. - name: Label {{ node }} for Fluentd deployment
  3. oc_label:
  4. name: "{{ node }}"
  5. kind: node
  6. state: add
  7. labels: "{{ openshift_logging_fluentd_nodeselector | lib_utils_oo_dict_to_list_of_dict }}"
  8. # wait half a second between labels
  9. - local_action: command sleep {{ openshift_logging_fluentd_label_delay | default('.5') }}