Ansible模板 - 目标目录不存在错误

Ani*_*yap 7 templates copy ansible

我是ansible的新手,我在我的手册中使用模板语句将文件从本地机器复制到远程机器.我得到一个错误,说目标目录不存在,但它非常多.

我正在使用Centos 6.5版本(我的本地和远程).任何帮助表示赞赏.

use*_*349 17

使用Ansible创建目标目录 -

- name: Create target directory
  file: path=/etc/some_directory state=directory mode=0755
Run Code Online (Sandbox Code Playgroud)

参考:http://docs.ansible.com/file_module.html