diff --git a/lib/ansible/modules/files/file.py b/lib/ansible/modules/files/file.py index 96d5e6df38e..8fac3050454 100644 --- a/lib/ansible/modules/files/file.py +++ b/lib/ansible/modules/files/file.py @@ -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 + '''