1234567891011121314151617181920212223242526272829303132333435363738394041 |
- ---
- - name: Stop node and openvswitch services
- service:
- name: "{{ item }}"
- state: stopped
- with_items:
- - etcd_container
- - openvswitch
- - "{{ openshift_service_type }}-master-api"
- - "{{ openshift_service_type }}-master-controllers"
- - "{{ openshift_service_type }}-node"
- failed_when: false
- - name: Ensure static containerized services stopped before Docker restart
- command: /usr/local/bin/master-restart "{{ item }}"
- with_items:
- - api
- - controllers
- - etcd
- failed_when: false
- - service:
- name: docker
- state: stopped
- register: l_openshift_node_upgrade_docker_stop_result
- until: not (l_openshift_node_upgrade_docker_stop_result is failed)
- retries: 3
- delay: 30
- when:
- - l_docker_upgrade is defined
- - l_docker_upgrade | bool
- - name: Stop rpm based services
- service:
- name: "{{ item }}"
- state: stopped
- with_items:
- - "{{ openshift_service_type }}-node"
- - openvswitch
- failed_when: false
- when: not openshift_is_containerized | bool
|