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 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: >
|
2019-02-01 05:17:20 +08:00
|
|
|
{{ container_binary }} run --rm --net=host --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
|