Variables
Default variables
The common variables for all distributions are in the directory
defaults/main/. These variables can be customized in the file
vars/main.yml. The file vars/main.yml will be preserved by the
update of the role.
Warning
Don’t make any changes to the file defaults/main.yml. The changes will be overwritten by the update of the role. Customize the default values in the file vars/main.yml.
Default value of lp_passwords_debug_classified and lp_wpasupplicant_debug_classified is False. Passwords will be displayed if these variables are enabled.
See also
The examples of the customization
vars/main.yml.sampleDefaults of lp_vars_
defaults/main/vars.yml
1---
2
3lp_vars_distro: firstfound
4lp_vars_distro_firstfound_skip: true # issue #43833
5lp_vars_flavors: firstfound
Default OS specific variables
The files in the directories vars/defaults and
vars/defaults.incr keep OS specific variables. The difference
between them is the method how the files are included.
firstfound: A file in the directory
vars/defaultsin the orderansible_distribution_release,ansible_distribution, andansible_os_familyis included with the lookup pluginfirst_found.incremental: All files in the directory
vars/defaults.incrin the orderansible_os_family,ansible_distribution, andansible_distribution_releaseare included in the loop. The variables in the files overwrite each other.
In addition, also files defaults.yml and/or default.yml can be
included.
The method is determined by the variable lp_vars_distro (default:
firstfound)
lp_vars_distro: firstfound
Warning
Don’t change these file. The changes will be overwritten by the update of the role. Customize the default OS values in the files placed in the directory
vars/
See also
Annotated Source code vars.yml
Annotated Source code vars_firstfound.yml
Annotated Source code vars_incremental.yml
Custom OS specific variables
Os specific variables can be customized in files placed in the
directory vars/. These files will be preserved by the update.
See also
The examples of the customization
vars/defaults.yml.sample
Flavors specific variables (WIP)
The files in the directories vars/flavors and
vars/flavors.incr keep flavors specific variables. The difference
between them is the method how the files are included
firstfound: A file in the directory
vars/flavorsin the order <TBD> is included with the lookup pluginfirst_found.incremental: All files in the directory
vars/defaults.incrin the order <TBD> are included in the loop. The variables in the files overwrite each other.
In addition, also files defaults.yml and/or default.yml can be
included.
The method is determined by the variable lp_vars_flavor (default:
firstfound)
lp_vars_flavor: firstfound
Note
Annotated Source code vars_flavors.yml
Annotated Source code vars_flavors_common.yml