2017-02-02 00:18:17 +08:00
|
|
|
---
|
2017-09-15 06:48:53 +08:00
|
|
|
- name: include pre_requisites/prerequisites.yml
|
2018-08-21 22:23:35 +08:00
|
|
|
include_tasks: pre_requisites/prerequisites.yml
|
2017-09-15 06:48:53 +08:00
|
|
|
when:
|
|
|
|
- not is_atomic
|
2017-02-24 17:22:16 +08:00
|
|
|
|
2017-09-06 16:53:30 +08:00
|
|
|
- name: get docker version
|
|
|
|
command: docker --version
|
|
|
|
changed_when: false
|
2017-10-25 22:53:34 +08:00
|
|
|
check_mode: no
|
2017-12-12 18:06:15 +08:00
|
|
|
register: ceph_docker_version
|
2018-11-27 00:22:04 +08:00
|
|
|
when:
|
|
|
|
- container_binary == 'docker'
|
2017-09-06 16:53:30 +08:00
|
|
|
|
2017-12-12 18:06:15 +08:00
|
|
|
- name: set_fact ceph_docker_version ceph_docker_version.stdout.split
|
2017-09-15 06:48:53 +08:00
|
|
|
set_fact:
|
2017-12-12 18:06:15 +08:00
|
|
|
ceph_docker_version: "{{ ceph_docker_version.stdout.split(' ')[2] }}"
|
2018-11-27 00:22:04 +08:00
|
|
|
when:
|
|
|
|
- container_binary == 'docker'
|
2017-09-06 16:53:30 +08:00
|
|
|
|
2017-09-15 06:48:53 +08:00
|
|
|
- name: include checks.yml
|
2018-08-21 22:23:35 +08:00
|
|
|
include_tasks: checks.yml
|
2017-04-13 01:57:33 +08:00
|
|
|
when:
|
|
|
|
- (not containerized_deployment_with_kv and
|
|
|
|
((inventory_hostname in groups.get(mon_group_name, [])) or
|
|
|
|
(inventory_hostname in groups.get(nfs_group_name, [])) or
|
|
|
|
(inventory_hostname in groups.get(osd_group_name, []))))
|
2018-10-19 21:52:28 +08:00
|
|
|
- not ceph_current_status.get('rc', 1) == 0
|
2017-09-19 01:04:05 +08:00
|
|
|
- not rolling_update | default(false)
|
2017-04-13 01:57:33 +08:00
|
|
|
|
2017-09-15 06:48:53 +08:00
|
|
|
- name: include fetch_image.yml
|
2018-08-21 22:23:35 +08:00
|
|
|
include_tasks: fetch_image.yml
|
2017-09-28 06:11:53 +08:00
|
|
|
tags:
|
|
|
|
- fetch_container_image
|
2017-08-29 05:23:36 +08:00
|
|
|
|
|
|
|
- name: get ceph version
|
2018-11-01 19:48:59 +08:00
|
|
|
command: >
|
2018-11-08 17:02:37 +08:00
|
|
|
{{ container_binary }} run --rm --entrypoint /usr/bin/ceph
|
2018-11-01 19:48:59 +08:00
|
|
|
{{ ceph_client_docker_registry }}/{{ ceph_client_docker_image }}:{{ ceph_client_docker_image_tag }}
|
|
|
|
--version
|
2017-08-29 05:23:36 +08:00
|
|
|
changed_when: false
|
2017-10-25 22:53:34 +08:00
|
|
|
check_mode: no
|
2017-08-29 05:23:36 +08:00
|
|
|
register: ceph_version
|
|
|
|
|
2017-09-15 06:48:53 +08:00
|
|
|
- name: set_fact ceph_version ceph_version.stdout.split
|
|
|
|
set_fact:
|
2017-08-29 05:23:36 +08:00
|
|
|
ceph_version: "{{ ceph_version.stdout.split(' ')[2] }}"
|
|
|
|
|
2017-09-15 06:48:53 +08:00
|
|
|
- name: include release.yml
|
2018-10-19 22:06:44 +08:00
|
|
|
include_tasks: release.yml
|