2017-02-02 00:18:17 +08:00
|
|
|
---
|
2019-05-20 15:46:10 +08:00
|
|
|
- name: include prerequisites.yml
|
|
|
|
include_tasks: prerequisites.yml
|
2017-02-24 17:22:16 +08:00
|
|
|
|
2017-09-06 16:53:30 +08:00
|
|
|
- name: get docker version
|
2019-05-20 15:46:10 +08:00
|
|
|
block:
|
|
|
|
- name: get docker version
|
|
|
|
command: docker --version
|
|
|
|
changed_when: false
|
|
|
|
check_mode: no
|
|
|
|
register: ceph_docker_version
|
2017-09-06 16:53:30 +08:00
|
|
|
|
2019-05-20 15:46:10 +08:00
|
|
|
- name: set_fact ceph_docker_version ceph_docker_version.stdout.split
|
|
|
|
set_fact:
|
|
|
|
ceph_docker_version: "{{ ceph_docker_version.stdout.split(' ')[2] }}"
|
2019-04-01 23:46:15 +08:00
|
|
|
when: container_binary == 'docker'
|
2017-09-06 16:53:30 +08:00
|
|
|
|
2019-10-23 01:58:50 +08:00
|
|
|
- name: include registry.yml
|
|
|
|
include_tasks: registry.yml
|
2019-09-11 03:33:44 +08:00
|
|
|
when: ceph_docker_registry_auth | bool
|
|
|
|
|
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
|
2019-04-01 23:46:15 +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
|
2019-04-01 23:46:15 +08:00
|
|
|
include_tasks: release.yml
|