1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- ---
- # TODO: refactor this into its own include
- # and pass a variable for ctx
- - name: Verify Requirements
- hosts: oo_all_hosts
- roles:
- - openshift_health_checker
- vars:
- - r_openshift_health_checker_playbook_context: install
- post_tasks:
- - action: openshift_health_check
- args:
- checks:
- - disk_availability
- - memory_availability
- - package_availability
- - package_version
- - docker_image_availability
- - docker_storage
- - include: initialize_oo_option_facts.yml
- tags:
- - always
- - name: Set hostname
- hosts: oo_masters_to_config:oo_nodes_to_config
- tasks:
- # TODO: switch back to hostname module once we depend on ansible-2.4
- # https://github.com/ansible/ansible/pull/25906
- - name: Set hostname
- command: "hostnamectl set-hostname {{ openshift.common.hostname }}"
- when: openshift_set_hostname | default(false,true) | bool
- - include: ../openshift-etcd/config.yml
- - include: ../openshift-nfs/config.yml
- tags:
- - nfs
- - include: ../openshift-loadbalancer/config.yml
- tags:
- - loadbalancer
- - include: ../openshift-master/config.yml
- - include: ../openshift-master/additional_config.yml
- - include: ../openshift-node/config.yml
- tags:
- - node
- - include: ../openshift-glusterfs/config.yml
- tags:
- - glusterfs
- - include: openshift_hosted.yml
- tags:
- - hosted
- - name: Configure API Aggregation on masters
- hosts: oo_masters
- serial: 1
- tasks:
- - block:
- - include_role:
- name: openshift_service_catalog
- tasks_from: wire_aggregator
- vars:
- first_master: "{{ groups.oo_first_master[0] }}"
- - include: service_catalog.yml
- when:
- - openshift_enable_service_catalog | default(false) | bool
- tags:
- - servicecatalog
- - name: Print deprecated variable warning message if necessary
- hosts: oo_first_master
- gather_facts: no
- tasks:
- - debug: msg="{{__deprecation_message}}"
- when:
- - __deprecation_message | default ('') | length > 0
|