improve ad-hoc examples

This commit is contained in:
L3D 2021-12-22 14:07:45 +01:00
parent d15ca7b982
commit a5311c167c
Signed by untrusted user who does not match committer: L3D
GPG Key ID: CD08445BFF4313D1
1 changed files with 5 additions and 2 deletions

View File

@ -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
```