summaryrefslogtreecommitdiffstats
path: root/playbooks/openshift-master/private/restart.yml
blob: 5cb284935b2762684f13cbf6f5b5240fc4c8ba8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
---
- import_playbook: validate_restart.yml

- name: Restart masters
  hosts: oo_masters_to_config
  vars:
    openshift_master_ha: "{{ groups.oo_masters_to_config | length > 1 }}"
  serial: 1
  handlers:
  - import_tasks: ../../../roles/openshift_master/handlers/main.yml
  roles:
  - openshift_facts
  post_tasks:
  - include_tasks: tasks/restart_hosts.yml
    when: openshift_rolling_restart_mode | default('services') == 'system'

  - include_tasks: tasks/restart_services.yml
    when: openshift_rolling_restart_mode | default('services') == 'services'