mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Adding directory creation example to file module.
This commit is contained in:
@@ -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
|
||||
|
||||
'''
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user