improve ad-hoc examples

This commit is contained in:
L3D 2021-12-22 14:07:45 +01:00
parent d15ca7b982
commit a5311c167c
Signed by: l3d
GPG key ID: CD08445BFF4313D1

View file

@ -70,6 +70,9 @@ pip install pywinrm
Ad-hoc copy file example: Ad-hoc copy file example:
---------------------------- ----------------------------
```bash ```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
```