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 <gregoryo2014@users.noreply.github.com>
pull/3722/head
Gregory Orange 2019-03-18 09:50:41 +08:00 committed by mergify[bot]
parent bfa99cdd53
commit 86e39a29c8
2 changed files with 4 additions and 4 deletions

View File

@ -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
daemon_reload: yes

View File

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