improve ad-hoc examples
This commit is contained in:
parent
d15ca7b982
commit
a5311c167c
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue