---
- import_playbook: validate_restart.yml

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