Merge pull request #94 from wgjohnson/master

Change the 'name' value for Playbook's variable example
This commit is contained in:
Michael DeHaan 2012-05-03 19:12:02 -07:00
commit 2f04126ea8
2 changed files with 2 additions and 6 deletions

View file

@ -184,7 +184,7 @@ All parameters available to the file module are also available when running the
*dest*: *dest*:
* absolute path to a file on the filesystem. * alias for 'path'. Sets an absolute path to a file on the filesystem when used with 'state=file'. When used with 'state=link', sets the destination to create a symbolic link defined by 'src' key.
*state*: *state*:
@ -206,10 +206,6 @@ All parameters available to the file module are also available when running the
* path of 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 will be created for 'link' state, also an alias for 'path'.
*seuser*: *seuser*:
* 'user' part of SELinux file context. Will default to what is provided by system policy, if available. Only used on systems with SELinux present. If you specify '_default', it will use the 'user' portion of default context from the policy if available. * 'user' part of SELinux file context. Will default to what is provided by system policy, if available. Only used on systems with SELinux present. If you specify '_default', it will use the 'user' portion of default context from the policy if available.

View file

@ -171,7 +171,7 @@ Variables can be used in action lines. Suppose you defined
a variable called 'vhost' in the 'vars' section, you could do this:: a variable called 'vhost' in the 'vars' section, you could do this::
tasks: tasks:
- name: make a directory - name: create a virtual host file for $vhost
action: template src=somefile.j2 dest=/etc/httpd/conf.d/$vhost action: template src=somefile.j2 dest=/etc/httpd/conf.d/$vhost
Those same variables are usable in templates, which we'll get to later. Those same variables are usable in templates, which we'll get to later.