让
server_host_ip字典与
set_fact您的任务之前:
- set_fact: server_host_ip: "{'{{host_name}}':'{{host_ip}}'}"并
{{server_host_ip}}在docker模块中使用。

让
server_host_ip字典与
set_fact您的任务之前:
- set_fact: server_host_ip: "{'{{host_name}}':'{{host_ip}}'}"并
{{server_host_ip}}在docker模块中使用。