---
###############################
# OpenShift Pre-Requisites

# - subscribe hosts
# - prepare docker
# - other prep (install additional packages, etc.)
#
- hosts: OSEv3
  become: true
  roles:
    - { role: subscription-manager, when: hostvars.localhost.rhsm_register|default(False), tags: 'subscription-manager', ansible_sudo: true }
    - { role: docker, tags: 'docker' }
    - { role: openshift-prep, tags: 'openshift-prep' }

- hosts: localhost:cluster_hosts
  become: False
  tasks:
    - include: pre_tasks.yml
