From c7f799675d6807fb83d0d1b094d3c368760204bf Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Wed, 4 Apr 2012 20:30:41 -0400 Subject: [PATCH] Fix example typo + misc text --- rst/modules.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rst/modules.rst b/rst/modules.rst index d9e46e21cce..65821d80d33 100644 --- a/rst/modules.rst +++ b/rst/modules.rst @@ -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