我可以使用debug:var查看变量值,但它在实际任务中不起作用&将值打印为"vg": "hostvars[inventory_hostname].ansible_lvm.lvs.varlog.vg"name: Get VG Name vg_command: "{{ 'hostvars[inventory_hostname].ansible_lvm.lvsansible_disk/disk_extend.yml:96
Adding lvs/lv0:0 as an user of lvs/lv0_corig.Adding lvs/lv0:0 as an user of lvs/lv0_cache.Adding lvs/lv0:0 as an user of lvs/lv0_corig.Adding lvs/lv0:0 as an user of lvs/lv0_cache.Resuming