---
- import_playbook: validate_restart.yml

- name: Restart masters
  hosts: oo_masters_to_config
  serial: 1
  roles:
  - openshift_facts
  post_tasks:
  - include_tasks: tasks/restart_hosts.yml
    when: openshift_rolling_restart_mode | default('services') == 'system'
  - import_role:
      name: openshift_master
      tasks_from: restart.yml
    when: openshift_rolling_restart_mode | default('services') == 'services'