parent
77106a87a4
commit
73704c9049
@ -1,4 +1,12 @@ |
|||||||
- name: Run a command under cmd |
--- |
||||||
win_shell: mkdir C:\temp |
- name: win_file module demo |
||||||
args: |
hosts: all |
||||||
executable: cmd.exe |
become: false |
||||||
|
gather_facts: false |
||||||
|
vars: |
||||||
|
myfile: 'C:\Users\Administrator\Desktop\example.txt' |
||||||
|
tasks: |
||||||
|
- name: Creating an empty file |
||||||
|
ansible.windows.win_file: |
||||||
|
path: "test.txt" |
||||||
|
state: touch |
||||||
Loading…
Reference in new issue