mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Adding directory creation example to file module.
This commit is contained in:
parent
b4775234c9
commit
79dd0466b5
1 changed files with 3 additions and 0 deletions
|
@ -101,6 +101,9 @@ EXAMPLES = '''
|
|||
# touch the same file, but add/remove some permissions
|
||||
- file: path=/etc/foo.conf state=touch mode="u+rw,g-wx,o-rwx"
|
||||
|
||||
# create a directory if it doesn't exist
|
||||
- file: path=/etc/some_directory state=directory mode=0755
|
||||
|
||||
'''
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue