<commit_before>---
# input variables:
# - openshift.common.service_type
# - openshift.common.is_containerized
# - openshift.common.hostname
# - openshift.master.api_port

- name: Restart docker
  service:
    name: "{{ openshift.docker.service_name }}"
    state: restarted

- name: Update docker facts
  openshift_facts:
    role: docker

- name: Start services
  service: name={{ item }} state=started
  with_items:
    - etcd_container
    - openvswitch
    - "{{ openshift.common.service_type }}-master"
    - "{{ openshift.common.service_type }}-master-api"
    - "{{ openshift.common.service_type }}-master-controllers"
    - "{{ openshift.common.service_type }}-node"
  failed_when: false<commit_msg>upgrade: Reload systemd before restart<commit_after>---
# input variables:
# - openshift.common.service_type
# - openshift.common.is_containerized
# - openshift.common.hostname
# - openshift.master.api_port

# NOTE: This is needed to make sure we are using the correct set
#       of systemd unit files. The RPMs lay down defaults but
#       the install/upgrade may override them in /etc/systemd/system/.
# NOTE: We don't use the systemd module as some versions of the module
#       require a service to be part of the call.
- name: Reload systemd to ensure latest unit files
  command: systemctl daemon-reload

- name: Restart docker
  service:
    name: "{{ openshift.docker.service_name }}"
    state: restarted

- name: Update docker facts
  openshift_facts:
    role: docker

- name: Start services
  service: name={{ item }} state=started
  with_items:
    - etcd_container
    - openvswitch
    - "{{ openshift.common.service_type }}-master"
    - "{{ openshift.common.service_type }}-master-api"
    - "{{ openshift.common.service_type }}-master-controllers"
    - "{{ openshift.common.service_type }}-node"
  failed_when: false
{'fraction_non_alphanumeric': 0.11544715447154472, 'fraction_numerical': 0.0, 'mean_word_length': 3.4481927710843374, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5208675', 'n_tokens_mistral': 606, 'n_tokens_neox': 574, 'n_words': 150}