ansible docker 模块:不支持的参数 docker_api_version
ansible docker module: unsupported parameter docker_api_version
由于我的机器和目标服务器上的Docker API版本不同,所以我必须在任务中指定版本,至于https://github.com/ansible/ansible-modules-core/issues/705
这是我的任务:
- name: stop the running container
docker:
docker_api_version: 1.13
image: my_image
name: my_container
state: absent
returns错误:
msg: unsupported parameter for module: docker_api_version
我使用的是ansible 1.7.2,参数出现在1.4的文档中http://docs.ansible.com/docker_module.html
docker_api_version
的文档显示为 "added in Ansible 1.8"。 (请参阅您链接的页面上的评论部分 http://docs.ansible.com/docker_module.html)
由于我的机器和目标服务器上的Docker API版本不同,所以我必须在任务中指定版本,至于https://github.com/ansible/ansible-modules-core/issues/705
这是我的任务:
- name: stop the running container
docker:
docker_api_version: 1.13
image: my_image
name: my_container
state: absent
returns错误:
msg: unsupported parameter for module: docker_api_version
我使用的是ansible 1.7.2,参数出现在1.4的文档中http://docs.ansible.com/docker_module.html
docker_api_version
的文档显示为 "added in Ansible 1.8"。 (请参阅您链接的页面上的评论部分 http://docs.ansible.com/docker_module.html)