From 73704c9049c9afdd2a73eb90770fc60fc93bcc4b Mon Sep 17 00:00:00 2001 From: Nicolas Patouillard Date: Wed, 14 Dec 2022 17:05:54 +0100 Subject: [PATCH] Test YML file --- test.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/test.yml b/test.yml index 028af54..2173d6a 100644 --- a/test.yml +++ b/test.yml @@ -1,4 +1,12 @@ -- name: Run a command under cmd - win_shell: mkdir C:\temp - args: - executable: cmd.exe \ No newline at end of file +--- +- name: win_file module demo + hosts: all + 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 \ No newline at end of file