rhel_subscribe.yml 933 B

1234567891011121314151617181920212223242526272829303132
  1. ---
  2. - hosts: localhost
  3. connection: local
  4. become: no
  5. gather_facts: no
  6. tasks:
  7. - include_vars: openshift-cluster/cluster_hosts.yml
  8. - name: Evaluate group l_oo_all_hosts
  9. add_host:
  10. name: "{{ item }}"
  11. groups: l_oo_all_hosts
  12. with_items: "{{ g_all_hosts | default([]) }}"
  13. changed_when: False
  14. - hosts: l_oo_all_hosts
  15. gather_facts: no
  16. tasks:
  17. - include_vars: openshift-cluster/cluster_hosts.yml
  18. - include: ../common/openshift-cluster/evaluate_groups.yml
  19. - hosts: l_oo_all_hosts
  20. vars:
  21. openshift_deployment_type: "{{ deployment_type }}"
  22. roles:
  23. - role: rhel_subscribe
  24. when: deployment_type in ['atomic-enterprise', 'enterprise', 'openshift-enterprise'] and
  25. ansible_distribution == "RedHat" and
  26. lookup('oo_option', 'rhel_skip_subscription') | default(rhsub_skip, True) |
  27. default('no', True) | lower in ['no', 'false']
  28. - openshift_repos
  29. - os_update_latest