output the relevant package number into a local file command: echo "{{ ansible_facts.packages['item']['name'] }}"="{{ ansible_facts.packages['item']['name']\>\> logfile
loop: "{{ targe
%}"- name: Do these things on specific hosts cmd: "echo hello"
delegate_toansible_loop_var:项目:‘- host5 - host6’msg:‘未能连接到主机.因此,Ansible将"var_list“视为字符串,将所有值(包括连字符)串在一起,而不是按需要将其作为一个列表。我尝