openshift-logging.yml 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. ---
  2. #
  3. # This playbook is a preview of upcoming changes for installing
  4. # Hosted logging on. See inventory/byo/hosts.*.example for the
  5. # currently supported method.
  6. #
  7. - include: ../../common/openshift-cluster/verify_ansible_version.yml
  8. - name: Create initial host groups for localhost
  9. hosts: localhost
  10. connection: local
  11. become: no
  12. gather_facts: no
  13. tags:
  14. - always
  15. tasks:
  16. - include_vars: ../../byo/openshift-cluster/cluster_hosts.yml
  17. - name: Evaluate group l_oo_all_hosts
  18. add_host:
  19. name: "{{ item }}"
  20. groups: l_oo_all_hosts
  21. with_items: "{{ g_all_hosts | default([]) }}"
  22. changed_when: False
  23. - name: Create initial host groups for all hosts
  24. hosts: l_oo_all_hosts
  25. gather_facts: no
  26. tags:
  27. - always
  28. tasks:
  29. - include_vars: ../../byo/openshift-cluster/cluster_hosts.yml
  30. - include: ../../common/openshift-cluster/openshift_logging.yml
  31. vars:
  32. openshift_cluster_id: "{{ cluster_id | default('default') }}"
  33. openshift_debug_level: "{{ debug_level | default(2) }}"
  34. openshift_deployment_type: "{{ deployment_type }}"