mirror of https://github.com/ceph/ceph-ansible.git
41 lines
1.2 KiB
YAML
41 lines
1.2 KiB
YAML
---
|
|
- name: include pre_requisites/prerequisites.yml
|
|
include_tasks: pre_requisites/prerequisites.yml
|
|
when: not is_atomic
|
|
|
|
- name: get docker version
|
|
command: docker --version
|
|
changed_when: false
|
|
check_mode: no
|
|
register: ceph_docker_version
|
|
when: container_binary == 'docker'
|
|
|
|
- name: set_fact ceph_docker_version ceph_docker_version.stdout.split
|
|
set_fact:
|
|
ceph_docker_version: "{{ ceph_docker_version.stdout.split(' ')[2] }}"
|
|
when: container_binary == 'docker'
|
|
|
|
- name: include fetch_image.yml
|
|
include_tasks: fetch_image.yml
|
|
tags: fetch_container_image
|
|
when: containerized_deployment
|
|
|
|
- name: get ceph version
|
|
command: >
|
|
{{ container_binary }} run --rm --net=host --entrypoint /usr/bin/ceph
|
|
{{ ceph_client_docker_registry }}/{{ ceph_client_docker_image }}:{{ ceph_client_docker_image_tag }}
|
|
--version
|
|
changed_when: false
|
|
check_mode: no
|
|
register: ceph_version
|
|
when: containerized_deployment
|
|
|
|
- name: set_fact ceph_version ceph_version.stdout.split
|
|
set_fact:
|
|
ceph_version: "{{ ceph_version.stdout.split(' ')[2] }}"
|
|
when: containerized_deployment
|
|
|
|
- name: include release.yml
|
|
include_tasks: release.yml
|
|
when: containerized_deployment
|