ceph-ansible/roles/ceph-mon/tasks/docker/start_docker_monitor.yml

10 lines
466 B
YAML

---
- name: run the ceph Monitor docker image
docker: >
image="{{ ceph_mon_docker_username }}/{{ ceph_mon_docker_imagename }}"
name="{{ ansible_hostname }}"
net="host"
state="running"
env="MON_IP={{ hostvars[inventory_hostname]['ansible_' + ceph_mon_docker_interface]['ipv4']['address'] }},CEPH_DAEMON=MON,CEPH_PUBLIC_NETWORK={{ ceph_mon_docker_subnet }},{{ ceph_mon_extra_envs }}"
volumes="/var/lib/ceph:/var/lib/ceph,/etc/ceph:/etc/ceph"