ceph-ansible/roles/ceph-container-common/tasks/main.yml

37 lines
1.0 KiB
YAML
Raw Normal View History

---
- name: include prerequisites.yml
include_tasks: prerequisites.yml
- name: get docker version
block:
- name: get docker version
command: docker --version
changed_when: false
check_mode: no
register: ceph_docker_version
- 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
- 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
- name: set_fact ceph_version ceph_version.stdout.split
set_fact:
ceph_version: "{{ ceph_version.stdout.split(' ')[2] }}"
- name: include release.yml
include_tasks: release.yml