content {toc} 读取本地文件并赋值给变量 - hosts: all vars: contents: "" tasks: - debug: msg="the value of foo.txt is "