master
omidshj 2024-05-11 19:10:55 +03:30
commit 988647fcce
1 changed files with 12 additions and 0 deletions

12
test.yml Normal file
View File

@ -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'