1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix example typo + misc text

This commit is contained in:
Michael DeHaan 2012-04-04 20:30:41 -04:00
parent 4d4b10309d
commit c7f799675d

View file

@ -134,7 +134,7 @@ All parameters available to the file module are also available when running the
*state*:
* either 'file', 'link', 'directory', or 'absent'. The default is 'file'. If 'directory', the directory and all immediate subdirectories will be created if they do not exist. If 'file', the file will NOT be created if it does not exist, specify `copy` or `template` for the module name instead if you need to put content at the specified location. if 'link', the symbolic link will be created or changed. If 'absent', directories will be recursively deleted, and files or symlinks will be unlinked.
* either 'file', 'link', 'directory', or 'absent'. The default is 'file'. If 'directory', the directory and all immediate subdirectories will be created if they do not exist. If 'file', the file will NOT be created if it does not exist, specify `copy` or `template` for the module name instead if you need to put content at the specified location. If 'link', the symbolic link will be created or changed. If 'absent', directories will be recursively deleted, and files or symlinks will be unlinked.
*mode*:
@ -150,18 +150,18 @@ All parameters available to the file module are also available when running the
*src*:
* path to the file to link to (applies only to 'link' state)
* path of the file to link to (applies only to 'link' state)
*dest*:
* location where the symlink is to be created (applies only to 'link' state)
* location where the symlink will be created for 'link' state, also an alias for 'path'.
Example action from Ansible :doc:`playbooks`::
file path=/etc/foo.conf owner=foo group=foo mode=0644
file path=/some/path owner=foo group=foo state=directory
file /path/to/delete state=absent
file path=/path/to/delete state=absent
file src=/file/to/link/to dest=/path/to/symlink owner=foo group=foo state=link
git