mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Mention vars_files before the Roles section
The Roles section assumes some familiarity with vars_files, which this note attempts to briefly provide.
This commit is contained in:
parent
7fabaec55f
commit
0bb145af40
1 changed files with 5 additions and 0 deletions
|
@ -136,6 +136,11 @@ The `vars` section contains a list of variables and values that can be used in t
|
||||||
van_halen_port: 5150
|
van_halen_port: 5150
|
||||||
other: 'magic'
|
other: 'magic'
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
You can also keep variables in separate files and include them alongside inline `vars` with a `vars_files` declaration
|
||||||
|
in the play. See the `Advanced Playbooks chapter <http://ansible.cc/docs/playbooks2.html#variable-file-separation>`_
|
||||||
|
for more info.
|
||||||
|
|
||||||
These variables can be used later in the playbook like this::
|
These variables can be used later in the playbook like this::
|
||||||
|
|
||||||
$varname or ${varname} or {{ varname }}
|
$varname or ${varname} or {{ varname }}
|
||||||
|
|
Loading…
Reference in a new issue