mirror of https://github.com/ceph/ceph-ansible.git
Merge pull request #708 from ceph/docker-img
docker: do not hardcode image and user namepull/713/head
commit
afad22c5a1
|
@ -7,7 +7,7 @@
|
||||||
# NOTE (leseb): we can not use docker inspect with 'format filed' because of
|
# NOTE (leseb): we can not use docker inspect with 'format filed' because of
|
||||||
# https://github.com/ansible/ansible/issues/10156
|
# https://github.com/ansible/ansible/issues/10156
|
||||||
- name: inspect ceph version
|
- name: inspect ceph version
|
||||||
shell: docker inspect docker.io/ceph/daemon | awk -F '=' '/CEPH_VERSION/ { gsub ("\",", "", $2); print $2 }' | uniq
|
shell: docker inspect docker.io/"{{ ceph_mds_docker_username }}"/"{{ ceph_mds_docker_imagename }}" | awk -F '=' '/CEPH_VERSION/ { gsub ("\",", "", $2); print $2 }' | uniq
|
||||||
changed_when: false
|
changed_when: false
|
||||||
failed_when: false
|
failed_when: false
|
||||||
run_once: true
|
run_once: true
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
# NOTE (leseb): we can not use docker inspect with 'format filed' because of
|
# NOTE (leseb): we can not use docker inspect with 'format filed' because of
|
||||||
# https://github.com/ansible/ansible/issues/10156
|
# https://github.com/ansible/ansible/issues/10156
|
||||||
- name: inspect ceph version
|
- name: inspect ceph version
|
||||||
shell: docker inspect docker.io/ceph/daemon | awk -F '=' '/CEPH_VERSION/ { gsub ("\",", "", $2); print $2 }' | uniq
|
shell: docker inspect docker.io/"{{ ceph_mon_docker_username }}"/"{{ ceph_mon_docker_imagename }}" | awk -F '=' '/CEPH_VERSION/ { gsub ("\",", "", $2); print $2 }' | uniq
|
||||||
changed_when: false
|
changed_when: false
|
||||||
failed_when: false
|
failed_when: false
|
||||||
run_once: true
|
run_once: true
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
# NOTE (leseb): we can not use docker inspect with 'format filed' because of
|
# NOTE (leseb): we can not use docker inspect with 'format filed' because of
|
||||||
# https://github.com/ansible/ansible/issues/10156
|
# https://github.com/ansible/ansible/issues/10156
|
||||||
- name: inspect ceph version
|
- name: inspect ceph version
|
||||||
shell: docker inspect docker.io/ceph/daemon | awk -F '=' '/CEPH_VERSION/ { gsub ("\",", "", $2); print $2 }' | uniq
|
shell: docker inspect docker.io/"{{ ceph_osd_docker_username }}"/"{{ ceph_osd_docker_imagename }}" | awk -F '=' '/CEPH_VERSION/ { gsub ("\",", "", $2); print $2 }' | uniq
|
||||||
changed_when: false
|
changed_when: false
|
||||||
failed_when: false
|
failed_when: false
|
||||||
run_once: true
|
run_once: true
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: inspect ceph version
|
- name: inspect ceph version
|
||||||
shell: "docker inspect --format '{{ index (index .Config.Env) 3 }}' docker.io/{{ ceph_mon_docker_username }}/{{ ceph_mon_docker_imagename }} | cut -d '=' -f '2'"
|
shell: docker inspect docker.io/"{{ ceph_restapi_docker_username }}"/"{{ ceph_restapi_docker_imagename }}" | awk -F '=' '/CEPH_VERSION/ { gsub ("\",", "", $2); print $2 }' | uniq
|
||||||
changed_when: false
|
changed_when: false
|
||||||
failed_when: false
|
failed_when: false
|
||||||
run_once: true
|
run_once: true
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
# NOTE (leseb): we can not use docker inspect with 'format filed' because of
|
# NOTE (leseb): we can not use docker inspect with 'format filed' because of
|
||||||
# https://github.com/ansible/ansible/issues/10156
|
# https://github.com/ansible/ansible/issues/10156
|
||||||
- name: inspect ceph version
|
- name: inspect ceph version
|
||||||
shell: docker inspect docker.io/ceph/daemon | awk -F '=' '/CEPH_VERSION/ { gsub ("\",", "", $2); print $2 }' | uniq
|
shell: docker inspect docker.io/"{{ ceph_rgw_docker_username }}"/"{{ ceph_rgw_docker_imagename }}" | awk -F '=' '/CEPH_VERSION/ { gsub ("\",", "", $2); print $2 }' | uniq
|
||||||
changed_when: false
|
changed_when: false
|
||||||
failed_when: false
|
failed_when: false
|
||||||
run_once: true
|
run_once: true
|
||||||
|
|
Loading…
Reference in New Issue