commit 988647fccedfc9bef08ec0f079a2d0e29f5f2c9f Author: omidshj Date: Sat May 11 19:10:55 2024 +0330 init diff --git a/test.yml b/test.yml new file mode 100644 index 0000000..6ff517d --- /dev/null +++ b/test.yml @@ -0,0 +1,12 @@ +--- +- name: Create a file in /root directory + hosts: all + # become: yes # This is necessary to gain root privileges + tasks: + - name: Ensure test.txt exists in /root directory + file: + path: /root/test.txt + state: touch + owner: root + group: root + mode: '0644' \ No newline at end of file