ceph-ansible/roles/ceph-osd/tasks/docker/start_docker_osd.yml

12 lines
427 B
YAML
Raw Normal View History

---
- name: run the ceph osd docker image
docker: >
image="{{ ceph_osd_docker_username }}/{{ ceph_osd_docker_imagename }}"
name={{ ansible_hostname }}-osd-{{ item | regex_replace('/', '') }}
net=host
state=running
privileged=yes
env="OSD_DEVICE={{ item }},{{ ceph_osd_docker_extra_env }}"
volumes="/var/lib/ceph:/var/lib/ceph,/etc/ceph:/etc/ceph,/dev/:/dev/"
with_items: ceph_osd_docker_devices