main.yaml 562 B

123456789101112131415
  1. ---
  2. - name: restart master api
  3. systemd: name={{ openshift_service_type }}-master-api state=restarted
  4. when: (not master_api_service_status_changed | default(false))
  5. # TODO: need to fix up ignore_errors here
  6. # We retry the controllers because the API may not be 100% initialized yet.
  7. - name: restart master controllers
  8. command: "systemctl restart {{ openshift_service_type }}-master-controllers"
  9. retries: 3
  10. delay: 5
  11. register: result
  12. until: result.rc == 0
  13. when: (not master_controllers_service_status_changed | default(false))
  14. ignore_errors: yes