---
# l_scale_up_hosts may be passed in via prerequisites.yml during scaleup plays.
# l_etcd_scale_up_crt_hosts may be passed in via prerequisites.yml during etcd
# scaleup plays.

- hosts: "{{ l_etcd_scale_up_crt_hosts | default(l_scale_up_hosts) | default('oo_nodes_to_config') }}"
  roles:
    - role: container_runtime
  tasks:
    - import_role:
        name: openshift_excluder
        tasks_from: enable.yml
      vars:
        r_openshift_excluder_action: enable
        r_openshift_excluder_enable_openshift_excluder: false
    - import_role:
        name: container_runtime
        tasks_from: package_docker.yml
      when:
        - not openshift_use_crio_only | bool
    - import_role:
        name: container_runtime
        tasks_from: package_crio.yml
      when:
        - openshift_use_crio | bool
