在Ansible 中,remote_src 是一个重要的参数,它用于定义文件的源位置。默认情况下,Ansible 的 copy 和template 模块会从控制节点(即运行 Ansible 的主机)将文件拷贝到远程主机。然而,通过设置 remote_src 参数为 yes,可以直接从远程主机拷贝文件到其他远程主机,或者从远程主机上的模板文件生成配置文件。 使用场景 跨...
filename: "{{ ansible_fqdn }}.xml" public: "true" evaluationTags: "security" Error message: "Could not find or access '/tmp/oscap/ans-01.corp.com.xml' on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option"} ...
ISSUE TYPE Bug Report COMPONENT NAME unarchive ANSIBLE VERSION $ ansible --version ansible 2.2.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides CONFIGURATION N/A OS / ENVIRONMENT Node: Fedora...