From 86e39a29c8e51c364f05438a06ed88c7cf1bf8a5 Mon Sep 17 00:00:00 2001 From: Gregory Orange Date: Mon, 18 Mar 2019 09:50:41 +0800 Subject: [PATCH] Change docker_container parameter network to network_mode Addressing "populate kv_store with custom ceph.conf": Unsupported parameters for (docker_container) module. Looking at https://docs.ansible.com/ansible/latest/modules/docker_container_module.html shows that the correct parameter is network_mode, not network. Signed-off-by: Gregory Orange --- roles/ceph-mon/tasks/docker/start_docker_monitor.yml | 6 +++--- roles/ceph-restapi/tasks/docker/start_docker_restapi.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/roles/ceph-mon/tasks/docker/start_docker_monitor.yml b/roles/ceph-mon/tasks/docker/start_docker_monitor.yml index 409a5020f..4fc450532 100644 --- a/roles/ceph-mon/tasks/docker/start_docker_monitor.yml +++ b/roles/ceph-mon/tasks/docker/start_docker_monitor.yml @@ -4,7 +4,7 @@ name: populate-kv-store image: "{{ ceph_docker_image }}:{{ ceph_docker_image_tag }}" command: populate_kvstore - network: host + network_mode: host env: KV_TYPE: "{{kv_type}}" KV_IP: "{{kv_endpoint}}" @@ -20,7 +20,7 @@ name: populate-kv-store image: "{{ ceph_docker_image }}:{{ ceph_docker_image_tag }}" command: populate_kvstore - network: host + network_mode: host env: KV_TYPE: "{{kv_type}}" KV_IP: "{{kv_endpoint}}" @@ -56,4 +56,4 @@ name: ceph-mon@{{ ansible_hostname }} state: started enabled: yes - daemon_reload: yes \ No newline at end of file + daemon_reload: yes diff --git a/roles/ceph-restapi/tasks/docker/start_docker_restapi.yml b/roles/ceph-restapi/tasks/docker/start_docker_restapi.yml index 470ff51f7..c0d081edf 100644 --- a/roles/ceph-restapi/tasks/docker/start_docker_restapi.yml +++ b/roles/ceph-restapi/tasks/docker/start_docker_restapi.yml @@ -3,7 +3,7 @@ docker_container: image: "{{ ceph_docker_registry }}/{{ ceph_docker_image }}:{{ ceph_docker_image_tag }}" name: "ceph-restapi-{{ ansible_hostname }}" - network: host + network_mode: host expose: "{{ ceph_restapi_port }}" state: running env: "RESTAPI_IP={{ hostvars[inventory_hostname]['ansible_' + ceph_restapi_docker_interface]['ipv4']['address'] }},CEPH_DAEMON=RESTAPI,{{ ceph_restapi_docker_extra_env }}"