---
- include: evaluate_groups.yml

- hosts: oo_hosts_to_update
  vars:
    openshift_deployment_type: "{{ deployment_type }}"
  roles:
  - role: rhel_subscribe
    when: deployment_type in ["enterprise", "atomic-enterprise", "openshift-enterprise"] and
          ansible_distribution == "RedHat" and
          lookup('oo_option', 'rhel_skip_subscription') | default(rhsub_skip, True) |
            default('no', True) | lower in ['no', 'false']
  - openshift_repos
  - os_update_latest

---
- include: evaluate_groups.yml

- hosts: oo_hosts_to_update
  vars:
    openshift_deployment_type: "{{ deployment_type }}"
  roles:
  # Explicitly calling openshift_facts because it appears that when
  # rhel_subscribe is skipped that the openshift_facts dependency for
  # openshift_repos is also skipped (this is the case at least for Ansible
  # 2.0.2)
  - openshift_facts
  - role: rhel_subscribe
    when: deployment_type in ["enterprise", "atomic-enterprise", "openshift-enterprise"] and
          ansible_distribution == "RedHat" and
          lookup('oo_option', 'rhel_skip_subscription') | default(rhsub_skip, True) |
            default('no', True) | lower in ['no', 'false']
  - openshift_repos
  - os_update_latest

Fix bin/cluster libvirt related error
Fix bin/cluster libvirt related error
