Here's an example that is specific and fully specified, assuming the directory on your local host containing the files to be distributed is sourcedir, and that the remote target's hostname is hostname: cd sourcedir & \ Copying a directory is supported by the copy module, but not by the fetch module.Using wildcards in the file paths isn't supported by these ansible modules.flat=yes copies just the file, doesn't copy whole remote path leading to the file.b expands to -become, and the default -become-user is root, with the default -become-method being sudo. -b causes the actions on the server to be done as root.It is the way to use ansible without needing an inventory file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |