mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 22:33:25 +00:00
Merge pull request #94 from wgjohnson/master
Change the 'name' value for Playbook's variable example
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user