---
- import_playbook: ../init/evaluate_groups.yml

- name: Subscribe hosts, update repos and update OS packages
  hosts: oo_all_hosts
  roles:
  - role: rhel_subscribe
    when:
    - openshift_deployment_type == 'openshift-enterprise'
    - ansible_distribution == "RedHat"
    - rhsub_user is defined
    - rhsub_pass is defined
  - role: openshift_repos
  - role: os_update_latest