Ansible template - no error in destination directory

I'm new to the question, and I use the template operator in my book to copy a file from my local machine to a remote machine. I get a message that the destination directory does not exist, but it is very much.

I am using Centos 6.5 (both local and remote). Any help is appreciated.

+4
source share
1 answer

Create the target directory using Ansible -

- name: Create target directory
  file: path=/etc/some_directory state=directory mode=0755

Link: http://docs.ansible.com/file_module.html

+11
source

All Articles