ceph-ansible/roles/ceph-docker-common/tasks/ceph_docker_version.yml

10 lines
286 B
YAML

---
- 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] }}"