From a5311c167c3124a2a76cbb1ae63b96fad947123d Mon Sep 17 00:00:00 2001 From: L3D Date: Wed, 22 Dec 2021 14:07:45 +0100 Subject: [PATCH] improve ad-hoc examples --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fb7c22c..3abac65 100644 --- a/README.md +++ b/README.md @@ -70,6 +70,9 @@ pip install pywinrm Ad-hoc copy file example: ---------------------------- ```bash -ansible -m ansible.windows.win_copy -a "src=/tmp/copy.txt dest='C:\copy.txt'" all -``` +# create C:\media\ +ansible -m ansible.windows.win_file -a "path='C:\media' state=directory" all +# copy file +ansible -m ansible.windows.win_copy -a "src=/tmp/copy.txt dest='C:\media\copy.txt'" all +```