restart.yml 558 B

123456789101112131415161718
  1. ---
  2. - import_playbook: validate_restart.yml
  3. - name: Restart masters
  4. hosts: oo_masters_to_config
  5. vars:
  6. openshift_master_ha: "{{ groups.oo_masters_to_config | length > 1 }}"
  7. serial: 1
  8. handlers:
  9. - import_tasks: ../../../roles/openshift_master/handlers/main.yml
  10. roles:
  11. - openshift_facts
  12. post_tasks:
  13. - include_tasks: tasks/restart_hosts.yml
  14. when: openshift_rolling_restart_mode | default('services') == 'system'
  15. - include_tasks: tasks/restart_services.yml
  16. when: openshift_rolling_restart_mode | default('services') == 'services'